Unlock form after unsuccessful save and publish. (#17285)
(cherry picked from commit ee37ad0f4b)
This commit is contained in:
committed by
Nikolaj Geisle
parent
f4f83bccbe
commit
6d98162e19
@@ -536,9 +536,9 @@
|
||||
if (err && err.status === 400 && err.data) {
|
||||
// content was saved but is invalid.
|
||||
eventsService.emit("content.saved", { content: $scope.content, action: args.action, valid: false });
|
||||
eventsService.emit("form.unlock");
|
||||
}
|
||||
|
||||
eventsService.emit("form.unlock");
|
||||
return $q.reject(err);
|
||||
});
|
||||
}
|
||||
@@ -759,7 +759,7 @@
|
||||
//ensure error messages are displayed
|
||||
formHelper.showNotifications(err.data);
|
||||
clearNotifications($scope.content);
|
||||
|
||||
|
||||
handleHttpException(err);
|
||||
deferred.reject(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user