Fixes an issue where custom OIDs would clear out san extensions

This commit is contained in:
kevgliss
2016-04-07 10:29:08 -07:00
parent 9a8e1534c0
commit c2387dc120
3 changed files with 14 additions and 6 deletions

View File

@ -23,7 +23,7 @@ angular.module('lemur')
if (angular.isString(this.subAltValue) && angular.isString(this.subAltType)) {
this.extensions.subAltNames.names.push({'nameType': this.subAltType, 'value': this.subAltValue});
this.findDuplicates();
//this.findDuplicates();
}
this.subAltType = null;
@ -31,10 +31,14 @@ angular.module('lemur')
},
removeSubAltName: function (index) {
this.extensions.subAltNames.names.splice(index, 1);
this.findDuplicates();
//this.findDuplicates();
},
attachCustom: function () {
if (this.extensions === undefined || this.extensions.custom === undefined) {
if (this.extensions === undefined) {
this.extensions = {};
}
if (this.extensions.custom === undefined) {
this.extensions = {'custom': []};
}