Project

General

Profile

« Previous | Next » 

Revision cc2367a4

Added by Patrick Plitzner almost 7 years ago

ref #6596 Fix FieldUnit creation when linked with taxon selection

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/handler/CreateFieldUnitHandler.java
39 39

  
40 40
                FieldUnit fieldUnit = FieldUnit.NewInstance();
41 41
                fieldUnit = CdmBase.deproxy(CdmStore.getService(IOccurrenceService.class).save(fieldUnit), FieldUnit.class);
42

  
42 43
                IndividualsAssociation association = IndividualsAssociation.NewInstance(fieldUnit);
43 44
                TaxonDescription description;
44 45
                if(!taxon.getDescriptions().isEmpty()){
......
53 54

  
54 55
                derivateView.getConversationHolder().commit();
55 56
                derivateView.addFieldUnit(fieldUnit);
57
                derivateView.updateRootEntities();
56 58
                derivateView.refreshTree(fieldUnit);
57 59
            }
58 60
        }
......
63 65
            }
64 66
            FieldUnit fieldUnit = FieldUnit.NewInstance();
65 67
            fieldUnit = CdmBase.deproxy(CdmStore.getService(IOccurrenceService.class).save(fieldUnit), FieldUnit.class);
68

  
66 69
            derivateView.getConversationHolder().commit();
67 70
            derivateView.addFieldUnit(fieldUnit);
68 71
            derivateView.updateRootEntities();

Also available in: Unified diff