Fix bug
A i18n string must not be static final. Otherwise it would always return the same string instead of using the version for the current locale. FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
This commit is contained in:
parent
e53b263bff
commit
fa59ac32e1
1 changed files with 6 additions and 3 deletions
|
|
@ -50,8 +50,6 @@ import org.navalplanner.business.resources.daos.ICriterionDAO;
|
|||
*/
|
||||
public class Criterion extends IntegrationEntity implements ICriterion {
|
||||
|
||||
private static final String ALL_WORKERS = _("[generic all workers]");
|
||||
|
||||
public static Criterion createUnvalidated(String code, String name,
|
||||
CriterionType type, Criterion parent, Boolean active) {
|
||||
|
||||
|
|
@ -118,7 +116,12 @@ public class Criterion extends IntegrationEntity implements ICriterion {
|
|||
for (Criterion each: criteria) {
|
||||
names.add(each.getName());
|
||||
}
|
||||
return (names.isEmpty()) ? Criterion.ALL_WORKERS : StringUtils.join(names, ",");
|
||||
return (names.isEmpty()) ? allWorkersCaption() : StringUtils.join(
|
||||
names, ",");
|
||||
}
|
||||
|
||||
private static String allWorkersCaption() {
|
||||
return _("[generic all workers]");
|
||||
}
|
||||
|
||||
public void updateUnvalidated(String name, Boolean active) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue