diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/materials/UnitTypeController.java b/libreplan-webapp/src/main/java/org/libreplan/web/materials/UnitTypeController.java index 45c7f8fcf..f08c9549e 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/materials/UnitTypeController.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/materials/UnitTypeController.java @@ -125,9 +125,7 @@ public class UnitTypeController extends BaseCRUDController { 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 { 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)) {