[Dive4elements-commits] [PATCH] D4E river: Fixed substitution on help URL

Wald Commits scm-commit at wald.intevation.org
Tue May 7 11:00:26 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1367917220 -7200
# Node ID 6dfd967dcae9c2416c30eeca2e8fad6c736e3299
# Parent  8bdb84aa95412ed385ee0ad4eb50ef7d966a0f87
D4E river: Fixed substitution on help URL.

diff -r 8bdb84aa9541 -r 6dfd967dcae9 artifacts/src/main/java/org/dive4elements/river/artifacts/states/DefaultState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DefaultState.java	Mon May 06 18:53:09 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DefaultState.java	Tue May 07 11:00:20 2013 +0200
@@ -81,9 +81,11 @@
 
         CallMeta meta = context.getMeta();
 
-        String helpText = getHelpText() != null ?
-            Resources.getMsg(meta, getHelpText(), getHelpText())
-            : null;
+        String helpText = getHelpText();
+        if (helpText != null) {
+            helpText = replaceHelpUrl(
+                Resources.getMsg(meta, helpText, helpText));
+        }
 
         String label = Resources.getMsg(meta, getID(), getID());
         Element ui   = ProtocolUtils.createArtNode(


More information about the Dive4elements-commits mailing list