[Lada-commits] [PATCH 3 of 4] Set labor_mst_id to mst_id if missing in laf import
Wald Commits
scm-commit at wald.intevation.org
Tue Nov 8 10:30:16 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1478597357 -3600
# Node ID 7c3d022a899f9cf7f5e6fa7ec82f74dc1fdc9ef8
# Parent 28b17710021775902a51d44211980fe6e8786607
Set labor_mst_id to mst_id if missing in laf import.
diff -r 28b177100217 -r 7c3d022a899f src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java Tue Nov 08 10:27:48 2016 +0100
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java Tue Nov 08 10:29:17 2016 +0100
@@ -119,6 +119,9 @@
for (Entry<String, String> attribute : object.getAttributes().entrySet()) {
addProbeAttribute(attribute, probe);
}
+ if (probe.getLaborMstId() == null) {
+ probe.setLaborMstId(probe.getMstId());
+ }
// Use the deskriptor string to find the medium
probe = factory.findMediaDesk(probe);
//logProbe(probe);
More information about the Lada-commits
mailing list