Don't prompt for changes when cancelling empty properties
This commit is contained in:
committed by
Sebastiaan Janssen
parent
040ebfe9dd
commit
cb7300688c
@@ -474,6 +474,11 @@
|
||||
if (!property.inherited) {
|
||||
|
||||
var oldPropertyModel = angular.copy(property);
|
||||
if (oldPropertyModel.allowCultureVariant === undefined) {
|
||||
// this is necessary for comparison when detecting changes to the property
|
||||
oldPropertyModel.allowCultureVariant = scope.model.allowCultureVariant;
|
||||
oldPropertyModel.alias = "";
|
||||
}
|
||||
var propertyModel = angular.copy(property);
|
||||
|
||||
var propertySettings = {
|
||||
|
||||
Reference in New Issue
Block a user