Fixes: U4-3103 The content name doesn't rebind from the server if the server changes the name

This commit is contained in:
Shannon
2013-10-15 12:48:35 +11:00
parent 171de064f6
commit 754ed06d86

View File

@@ -52,6 +52,12 @@ function contentEditingHelper($location, $routeParams, notificationsService, ser
});
}
//check for changed built-in properties of the content
if (!_.isEqual(origContent.name, newContent.name)) {
origContent.name = newContent.name;
}
//check for changed properties of the content
for (var p in allOrigProps) {
var newProp = getNewProp(allOrigProps[p].alias);
if (newProp && !_.isEqual(allOrigProps[p].value, newProp.value)) {