Unverified Commit 693e17e8 authored by Erin Clark's avatar Erin Clark Committed by GitHub
Browse files

Merge pull request #4389 from freenas/NAS-106790-12.0

NAS-106790 / 12.0 / NAS-106790 Allow for blank values (by dkmullen)
Showing with 8 additions and 7 deletions
+8 -7
......@@ -810,15 +810,16 @@ export class CertificateAuthorityAddComponent {
if (data[key] === '') {
data[key] = null;
}
if (type_prop.length === 1) {
for (let i = 0; i < data[key].length; i++) {
cert_extensions[type_prop[0]][data[key][i]] = true;
if (data[key]) {
if (type_prop.length === 1) {
for (let i = 0; i < data[key].length; i++) {
cert_extensions[type_prop[0]][data[key][i]] = true;
}
} else {
cert_extensions[type_prop[0]][type_prop[1]] = data[key];
}
} else {
cert_extensions[type_prop[0]][type_prop[1]] = data[key];
delete data[key];
}
delete data[key];
}
});
data['cert_extensions'] = cert_extensions;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment