Mercurial > dive4elements > river
changeset 5629:ce982943ab46
Datacage: dc:contains() is now able to process strings
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 10 Apr 2013 14:46:09 +0200 |
parents | 142ed3c62765 |
children | 619da3fa7a8b |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/FunctionResolver.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {