Change validation messages in material units editing window
FEA: ItEr76S04BugFixing
This commit is contained in:
parent
7a85e0ee56
commit
1900a39a0e
1 changed files with 2 additions and 5 deletions
|
|
@ -125,9 +125,7 @@ public class UnitTypeController extends BaseCRUDController<UnitType> {
|
|||
public void validate(Component comp, Object value) {
|
||||
String strValue = (String) value;
|
||||
if (StringUtils.isBlank(strValue)) {
|
||||
throw new WrongValueException(comp,
|
||||
_("Unit Type name cannot be empty")
|
||||
);
|
||||
throw new WrongValueException(comp, _("cannot be empty"));
|
||||
}
|
||||
|
||||
if (unitTypeModel.existsAnotherUnitTypeWithName(strValue)) {
|
||||
|
|
@ -147,8 +145,7 @@ public class UnitTypeController extends BaseCRUDController<UnitType> {
|
|||
public void validate(Component comp, Object value) {
|
||||
String strValue = (String) value;
|
||||
if (StringUtils.isBlank(strValue)) {
|
||||
throw new WrongValueException(comp,
|
||||
_("Unit type code cannot be empty"));
|
||||
throw new WrongValueException(comp, _("cannot be empty"));
|
||||
}
|
||||
|
||||
if (unitTypeModel.existsAnotherUnitTypeWithCode(strValue)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue