adapt editor to change getFieldUnitForGatheringEvent to findFieldUnitForGatheringEvent
authorKatja Luther <k.luther@bgbm.org>
Thu, 16 Aug 2018 06:50:31 +0000 (08:50 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 16 Aug 2018 06:52:28 +0000 (08:52 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/handler/OpenDerivativeEditorForGatheringEvent.java

index 535c725ce623b32524022e8f48dffa83ba64f533..0e6754c456778bb81329eeefc020b01d36199227 100644 (file)
@@ -34,7 +34,7 @@ public class OpenDerivativeEditorForGatheringEvent extends DefaultOpenHandlerBas
     @Override
     protected void open(GatheringEvent entity, Shell shell, EPartService partService) {
         Collection<UUID> specimenUuids = new ArrayList<UUID>();
-        List<FieldUnit> fieldUnits = CdmStore.getService(IOccurrenceService.class).getFieldUnitsForGatheringEvent(entity.getUuid());
+        List<FieldUnit> fieldUnits = CdmStore.getService(IOccurrenceService.class).findFieldUnitsForGatheringEvent(entity.getUuid());
         fieldUnits.forEach(fieldUnit->specimenUuids.add(fieldUnit.getUuid()));
         DerivateViewEditorInput input = new DerivateViewEditorInput(specimenUuids);
         EditorUtil.openSpecimenEditor(input, modelService, partService, application);