Skip to content

Commit

Permalink
Unlock form after unsuccessful save and publish. (#17285)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonElkin authored Oct 16, 2024
1 parent 3730109 commit ee37ad0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down Expand Up @@ -759,7 +759,7 @@
//ensure error messages are displayed
formHelper.showNotifications(err.data);
clearNotifications($scope.content);

handleHttpException(err);
deferred.reject(err);
});
Expand Down

0 comments on commit ee37ad0

Please sign in to comment.