[Bug #1180] Fix bug. checkConstraintUniqueTemplateName is only checked in root elements
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
c4dae61528
commit
2f15adcedc
1 changed files with 4 additions and 1 deletions
|
|
@ -462,9 +462,12 @@ public abstract class OrderElementTemplate extends BaseEntity implements
|
|||
return getParent() == null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@AssertTrue(message = "template name is already being used")
|
||||
public boolean checkConstraintUniqueTemplateName() {
|
||||
if (getParent() != null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
IOrderElementTemplateDAO orderElementTemplateDAO = Registry
|
||||
.getOrderElementTemplateDAO();
|
||||
if (isNewObject()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue