Skip to content

Commit

Permalink
show warning when saving without changes
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Sep 29, 2021
1 parent 2cbb27c commit bca3047
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ protected void postProcessResult(OperationResult result, Collection<ObjectDeltaO

protected Collection<ObjectDeltaOperation<? extends ObjectType>> executeChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, boolean previewOnly, ExecuteChangeOptionsDto options, Task task, OperationResult result, AjaxRequestTarget target) {
if (deltas.isEmpty()) {
//nothing to do;
result.recordWarning("PageAdminObjectDetails.noChangesSave");
showResult(result);
target.add(getFeedbackPanel());
redirectBack();
return null;
}
//TODO force
Expand Down

0 comments on commit bca3047

Please sign in to comment.