# HG changeset patch # User Raimund Renkert # 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 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);