Project

General

Profile

« Previous | Next » 

Revision d7ad25d9

Added by Katja Luther over 2 years ago

ref #9838: change order of ui element creation and setting entity in collection elements

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeAgentRelationCollectionElement.java
55 55

  
56 56
    @Override
57 57
    public void setEntity(TaxonNodeAgentRelation entity) {
58

  
59
        if(entity.getId()!=0){
58
    	this.entity = entity;
59
        if(entity.getId()!=0 && combo_relationshipType != null){
60 60
            combo_relationshipType.setSelection(entity.getType());
61 61
            selection_toPerson.setEntity(entity.getAgent());
62 62
        }
63
        this.entity = entity;
63
        
64 64
    }
65 65

  
66 66
    @Override
......
91 91
                            EntitySelectionElement.ALL, style);
92 92
        }
93 93
        label = formFactory.createLabel(element, null);
94

  
94
        if (entity != null){
95
        	setEntity(entity);
96
        }
95 97
    }
96 98

  
97 99
    public boolean isComplete(){

Also available in: Unified diff