IDEMPIERE-2324 Env.parseVariable(String, PO, String, boolean) doesn't use format when keepUnparseable / based on patch from Nicolas Micoud (nmicoud)
This commit is contained in:
parent
bd58ca4a3f
commit
6be4c15be0
|
@ -1480,8 +1480,12 @@ public final class Env
|
||||||
String v = Env.getContext(ctx, token);
|
String v = Env.getContext(ctx, token);
|
||||||
if (v != null && v.length() > 0)
|
if (v != null && v.length() > 0)
|
||||||
outStr.append(v);
|
outStr.append(v);
|
||||||
else if (keepUnparseable)
|
else if (keepUnparseable) {
|
||||||
outStr.append("@"+token+"@");
|
outStr.append("@").append(token);
|
||||||
|
if (!Util.isEmpty(format))
|
||||||
|
outStr.append("<").append(format).append(">");
|
||||||
|
outStr.append("@");
|
||||||
|
}
|
||||||
} else if (po != null) {
|
} else if (po != null) {
|
||||||
//take from po
|
//take from po
|
||||||
if (po.get_ColumnIndex(token) >= 0) {
|
if (po.get_ColumnIndex(token) >= 0) {
|
||||||
|
@ -1525,7 +1529,10 @@ public final class Env
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (keepUnparseable) {
|
} else if (keepUnparseable) {
|
||||||
outStr.append("@"+token+"@");
|
outStr.append("@").append(token);
|
||||||
|
if (!Util.isEmpty(format))
|
||||||
|
outStr.append("<").append(format).append(">");
|
||||||
|
outStr.append("@");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue