ItEr30S17ValidacionEProbasFuncionais: Showing proper error information creating an order. Fixing Bug #5.
This commit is contained in:
parent
03bf3af3f5
commit
6db6f3d79e
1 changed files with 7 additions and 2 deletions
|
|
@ -108,8 +108,13 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
if (invalidValue.getBean() instanceof OrderElement) {
|
||||
Label result = new Label();
|
||||
|
||||
String orderElementName = ((OrderElement) invalidValue
|
||||
.getBean()).getName();
|
||||
String orderElementName;
|
||||
if (invalidValue.getBean() instanceof Order) {
|
||||
orderElementName = _("Order");
|
||||
} else {
|
||||
orderElementName = ((OrderElement) invalidValue
|
||||
.getBean()).getName();
|
||||
}
|
||||
|
||||
result.setValue(orderElementName + " "
|
||||
+ invalidValue.getPropertyName()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue