Updated model widgets to use operator substitution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772709 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -500,12 +500,15 @@ public class StringUtil {
|
||||
*/
|
||||
public static String convertOperatorSubstitutions(String expression) {
|
||||
String result = expression;
|
||||
if (result != null && result.contains("@")) {
|
||||
if (result != null && (result.contains("@") || result.contains("'"))) {
|
||||
Set<String> keys = substitionPatternMap.keySet();
|
||||
for (String replacement : keys) {
|
||||
Pattern pattern = substitionPatternMap.get(replacement);
|
||||
result = pattern.matcher(result).replaceAll(replacement);
|
||||
}
|
||||
if (Debug.verboseOn()) {
|
||||
Debug.logVerbose("Converted " + expression + " to " + result, module);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user