changeset 5630:619da3fa7a8b

Datacage: fix dc:contains() Do not uppercase needle if its not a container search.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 10 Apr 2013 14:51:57 +0200
parents ce982943ab46
children ca4b6263996c
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/FunctionResolver.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();
         }
 

http://dive4elements.wald.intevation.org