# HG changeset patch # User Bjoern Ricks # Date 1348224565 0 # Node ID 9e2a720ceda083fbba107ec09745d1547a5523af # Parent 4aadcb90dc7709e5b40b1979a2e2063292da69ff Use fetchInfoURL instead of getInfoURL until the URL is fetched from the db flys-artifacts/trunk@5552 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4aadcb90dc77 -r 9e2a720ceda0 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Sep 21 10:04:12 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Sep 21 10:49:25 2012 +0000 @@ -1,3 +1,9 @@ +2012-09-21 Björn Ricks + + * src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java: + Use Gauge and River fetchInfoURL instead of getInfoURL until the URLs are + fetched from the db. + 2012-09-21 Felix Wolfsteller Fix issue887 (HYKs in New Chart). diff -r 4aadcb90dc77 -r 9e2a720ceda0 flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java Fri Sep 21 10:04:12 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java Fri Sep 21 10:49:25 2012 +0000 @@ -67,7 +67,7 @@ ec.addAttr(r, "kmup", Boolean.toString(river.getKmUp()), true); ec.addAttr(r, "minq", Double.toString(minmaxq[0]), true); ec.addAttr(r, "maxq", Double.toString(minmaxq[1]), true); - ec.addAttr(r, "info-url", river.getInfoURL(), true); + ec.addAttr(r, "info-url", river.fetchInfoURL(), true); Element egs = ec.create("gauges"); @@ -84,7 +84,7 @@ if (name != null) { ec.addAttr(eg, "name", gauge.getName(), true); } - ec.addAttr(eg, "info-url", gauge.getInfoURL(), true); + ec.addAttr(eg, "info-url", gauge.fetchInfoURL(), true); String aeo = getGaugeValue(gauge.getAeo()); if (aeo != null) {