[Dive4elements-commits] [PATCH] Datacage: fix dc:contains() Do not uppercase needle if its not a container search
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 10 14:52:02 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1365598317 -7200
# Node ID 619da3fa7a8b2d2fb00ce3e9161c37ae4759b4c4
# Parent ce982943ab463b172cedb3c112950eeac9f04f77
Datacage: fix dc:contains() Do not uppercase needle if its not a container search.
diff -r ce982943ab46 -r 619da3fa7a8b flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/FunctionResolver.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/FunctionResolver.java Wed Apr 10 14:46:09 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/FunctionResolver.java Wed Apr 10 14:51:57 2013 +0200
@@ -133,7 +133,7 @@
Object haystack = args.get(0);
Object needle = args.get(1);
- if (needle instanceof String) {
+ if (needle instanceof String && !(haystack instanceof String)) {
needle = ((String)needle).toUpperCase();
}
More information about the Dive4elements-commits
mailing list