Skip to content

Commit

Permalink
MID-7618: removing empty containers before validation resource (creat…
Browse files Browse the repository at this point in the history
…ing issues notes)
  • Loading branch information
skublik committed Mar 21, 2022
1 parent 326617c commit 302cba7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,9 @@ private void editAssociationPerformed(AjaxRequestTarget target, ResourceObjectAs
@Override
public void applyState() {
parentPage.refreshIssues(null);

removeEmptyContainers(resourceModel.getObject());

if (parentPage.isReadOnly() || !isComplete()) {
return;
}
Expand All @@ -837,8 +840,6 @@ private void savePerformed() {
ObjectDelta delta;
boolean saved = false;

removeEmptyContainers(newResource);

try {
oldResource = WebModelServiceUtils.loadObject(ResourceType.class, newResource.getOid(), parentPage, task, result);
if (oldResource == null) {
Expand Down

0 comments on commit 302cba7

Please sign in to comment.