# HG changeset patch # User Sascha L. Teichmann # Date 1365597969 -7200 # Node ID ce982943ab463b172cedb3c112950eeac9f04f77 # Parent 142ed3c6276557b06a2e789ab68a1bf0c6bacfc6 Datacage: dc:contains() is now able to process strings diff -r 142ed3c62765 -r ce982943ab46 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 10:59:29 2013 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/FunctionResolver.java Wed Apr 10 14:46:09 2013 +0200 @@ -156,6 +156,12 @@ } } + if (haystack instanceof String && needle instanceof String) { + String h = (String)haystack; + String n = (String)needle; + return h.contains(n); + } + return Boolean.FALSE; } catch (Exception e) {