Mercurial > dive4elements > river
changeset 6323:f49749526af4
Fix dc:fromValue and dc:toValue for locations
The mode is named location and not locations
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 13 Jun 2013 09:43:50 +0200 |
parents | 8c976bb0362f |
children | 3cf9e82b9c75 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FunctionResolver.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FunctionResolver.java Thu Jun 13 09:22:46 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FunctionResolver.java Thu Jun 13 09:43:50 2013 +0200 @@ -234,7 +234,7 @@ Object locations = args.get(1); Object from = args.get(2); - if (mode instanceof String && mode.equals("locations")) { + if (mode instanceof String && mode.equals("location")) { if (!(locations instanceof String)) { return -FAR_AWAY; } @@ -279,7 +279,7 @@ Object locations = args.get(1); Object to = args.get(2); - if (mode instanceof String && mode.equals("locations")) { + if (mode instanceof String && mode.equals("location")) { if (!(locations instanceof String)) { return FAR_AWAY; }