Unlock form after unsuccessful save and publish. (#17285)

(cherry picked from commit ee37ad0f4b)
This commit is contained in:
Jason Elkin
2024-10-16 14:08:37 +01:00
committed by Nikolaj Geisle
parent f4f83bccbe
commit 6d98162e19

View File

@@ -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);
});