[Dive4elements-commits] [PATCH 1 of 2] Fix dc:fromValue and dc:toValue for locations
Wald Commits
scm-commit at wald.intevation.org
Thu Jun 13 10:04:06 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1371109430 -7200
# Node ID f49749526af458c34d501e1942dec9f0911e96d5
# Parent 8c976bb0362fe5ac408407f91c0de7b40052065a
Fix dc:fromValue and dc:toValue for locations
The mode is named location and not locations
diff -r 8c976bb0362f -r f49749526af4 artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/FunctionResolver.java
--- 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;
}
More information about the Dive4elements-commits
mailing list