Merge "Fix issue with metadata saving"

This commit is contained in:
Jenkins
2016-11-29 18:18:22 +00:00
committed by Gerrit Code Review

View File

@@ -186,7 +186,14 @@
.success(function () {
ctrl.data.results[index][editFlag] = false;
}).error(function (error) {
raiseAlert('danger', error.title, error.detail);
if (error.code == 404) {
// Key doesn't exist, so count it as a success,
// and don't raise an alert.
ctrl.data.results[index][editFlag] = false;
}
else {
raiseAlert('danger', error.title, error.detail);
}
});
}
}