Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 763:e4d1fded433b
Bugfix: The Description of an InputData-Object will now only be fetched if
the Name of the data of the Current State is equal to the Name of the
InputData-Object.
gnv-artifacts/trunk@818 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 22 Mar 2010 12:52:09 +0000 |
parents | 93489a0c1328 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
762:b3f922908a31 | 763:e4d1fded433b |
---|---|
234 } | 234 } |
235 | 235 |
236 boolean valid = iv.isInputValid(tmpItem.getValue(), | 236 boolean valid = iv.isInputValid(tmpItem.getValue(), |
237 inputValue.getType()); | 237 inputValue.getType()); |
238 if (valid) { | 238 if (valid) { |
239 String[] desc = getDescriptionForInputData(tmpItem, uuid); | 239 |
240 tmpItem.setDescription(desc); | 240 if (tmpItem.getName().equals(this.dataName)){ |
241 String[] desc = getDescriptionForInputData(tmpItem, uuid); | |
242 tmpItem.setDescription(desc); | |
243 } | |
241 this.inputData.put(tmpItem.getName(), tmpItem); | 244 this.inputData.put(tmpItem.getName(), tmpItem); |
242 } else { | 245 } else { |
243 String msg = resFactory.getRessource( | 246 String msg = resFactory.getRessource( |
244 locale, | 247 locale, |
245 EXCEPTION_INVALID_INPUT, | 248 EXCEPTION_INVALID_INPUT, |