Bug #1430: Fix problem with error messages in OrderElementConverter
It was using wrong "+" instead of ",". FEA: ItEr76S04BugFixing
This commit is contained in:
parent
24fa78a938
commit
f8441d78cd
1 changed files with 16 additions and 16 deletions
|
|
@ -555,9 +555,9 @@ public final class OrderElementConverter {
|
|||
if (orderElementDTO instanceof OrderLineDTO) {
|
||||
if (!(orderElement instanceof OrderLine)) {
|
||||
throw new ValidationException(_(
|
||||
"Task {0} : Task group is incompatible type with {1}"
|
||||
+ orderElement.getCode(), orderElement
|
||||
.getClass().getName()));
|
||||
"Task {0}: Task group is incompatible type with {1}",
|
||||
orderElement.getCode(), orderElement.getClass()
|
||||
.getName()));
|
||||
}
|
||||
|
||||
if (configuration.isHoursGroups()) {
|
||||
|
|
@ -578,9 +578,9 @@ public final class OrderElementConverter {
|
|||
if (orderElementDTO instanceof OrderDTO) {
|
||||
if (!(orderElement instanceof Order)) {
|
||||
throw new ValidationException(_(
|
||||
"Task {0} : Project is incompatible type with {1}"
|
||||
+ orderElement.getCode(), orderElement
|
||||
.getClass().getName()));
|
||||
"Task {0}: Project is incompatible type with {1}",
|
||||
orderElement.getCode(), orderElement.getClass()
|
||||
.getName()));
|
||||
|
||||
}
|
||||
Order order = (Order) orderElement;
|
||||
|
|
@ -610,10 +610,10 @@ public final class OrderElementConverter {
|
|||
}
|
||||
} else { // orderElementDTO instanceof OrderLineGroupDTO
|
||||
if (!(orderElement instanceof OrderLineGroup)) {
|
||||
throw new ValidationException(_(
|
||||
"Task {0} : Task group is incompatible type with {1}"
|
||||
+ orderElement.getCode(), orderElement
|
||||
.getClass().getName()));
|
||||
throw new ValidationException(
|
||||
_("Task {0}: Task group is incompatible type with {1}",
|
||||
orderElement.getCode(), orderElement
|
||||
.getClass().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -623,14 +623,14 @@ public final class OrderElementConverter {
|
|||
childDTO, configuration);
|
||||
} else {
|
||||
if (checkConstraintUniqueOrderCode(orderElementDTO)) {
|
||||
throw new ValidationException(
|
||||
_("Task {0} : Duplicate code in DB"
|
||||
+ orderElementDTO.code));
|
||||
throw new ValidationException(_(
|
||||
"Task {0}: Duplicate code in DB",
|
||||
orderElementDTO.code));
|
||||
}
|
||||
if (checkConstraintUniqueHoursGroupCode(orderElementDTO)) {
|
||||
throw new ValidationException(
|
||||
_("Hours Group {0} : Duplicate code in DB"
|
||||
+ orderElementDTO.code));
|
||||
throw new ValidationException(_(
|
||||
"Hours Group {0}: Duplicate code in DB",
|
||||
orderElementDTO.code));
|
||||
}
|
||||
((OrderLineGroup) orderElement).add(toEntity(childDTO,
|
||||
configuration));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue