Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seed-master committed Oct 17, 2023
1 parent 0353272 commit 21d1fcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private void validateDeleteModuleDependent(Module module, ModuleDependent<? exte
errors.addError("val.inuse.moduletransfer", systemEntity.getName());
break;

case C.TRANSFORMER:
case C.TRANSFORM:
errors.addError("val.inuse.moduletransformer", systemEntity.getName());
break;

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/seed/core/form/FormServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,6 @@ public void deleteObject(Form form) throws ValidationException {
handleException(tx, ex);
}
}
if (form.hasFunctions()) {
form.getFunctions().forEach(this::removeFormFunctionClass);
}
}

@Override
Expand All @@ -466,6 +463,9 @@ public void deleteObject(Form form, Session session) throws ValidationException
if (form.getLayout() != null) {
session.delete(form.getLayout());
}
if (form.hasFunctions()) {
form.getFunctions().forEach(this::removeFormFunctionClass);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
visible="@load(!empty vm.object)"/>
<toolbarbutton iconSclass="delete-button z-icon-remove alpha-icon-lg"
label="${labels.admin.datasource.delete}"
onClick="@command('deleteDatasourceObject', elem=self)"
onClick="@command('deleteDataSource', elem=self)"
visible="@load(!empty vm.object)"/>
<toolbarbutton iconSclass="run-button z-icon-play alpha-icon-lg"
label="${labels.button.start}"
Expand Down

0 comments on commit 21d1fcc

Please sign in to comment.