Project

General

Profile

« Previous | Next » 

Revision 31986884

Added by Katja Luther almost 6 years ago

fix problem of saving changes in taxonnode wizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java
134 134
        }
135 135
		if (entity instanceof TaxonNode) {
136 136
		    checkbox_unplaced = formFactory.createCheckbox(formElement,
137
		            "Taxon is unplaced", unplaced, style);
137
		            "Taxon is unplaced", ((TaxonNode)entity).isUnplaced(), style);
138 138
		}
139 139

  
140 140
		if (!isCreateNew()){
......
146 146

  
147 147
		if (entity instanceof TaxonNode) {
148 148
		    checkbox_excluded = formFactory.createCheckbox(formElement,
149
		            "Taxon is excluded", excluded, style);
149
		            "Taxon is excluded", ((TaxonNode)entity).isExcluded(), style);
150 150
		    multiLanguageTextExcludedNotes = formFactory.createMultiLanguageTextElement(formElement, "Excluded Notes", ((TaxonNode)entity).getExcludedNote(), 50, style);
151 151
		    multiLanguageTextExcludedNotes.setEnabled(((TaxonNode) entity).isExcluded());
152 152
		}
......
212 212
			complete = !textNewTaxonName.getText().isEmpty();
213 213
		}else if (eventSource == selection_Ref) {
214 214
		    ((TaxonNode) getEntity()).setReference(selection_Ref.getEntity());
215
        }else if (eventSource == selection_SecRef) {
216
            ((TaxonNode) getEntity()).getTaxon().setSec(selection_SecRef.getEntity());
215 217
        }else if (eventSource == microReference) {
216 218
            ((TaxonNode) getEntity()).setMicroReference(microReference.getText());
217 219
        } else if (eventSource == textNewTaxonName) {
......
222 224
			complete = CdmUtils.isNotBlank(textNewTaxonName.getText());
223 225
		} else if (eventSource == checkbox_excluded) {
224 226
		    excluded = checkbox_excluded.getSelection();
225
		    if (!isCreateNew()){
226
		        ((TaxonNode)getEntity()).setExcluded(excluded);
227
		    }
227
		    ((TaxonNode)getEntity()).setExcluded(excluded);
228 228

  
229 229
            multiLanguageTextExcludedNotes.setEnabled(excluded);
230 230
		} else if (eventSource == checkbox_unplaced) {
231 231
		    unplaced = checkbox_unplaced.getSelection();
232
		    if (!isCreateNew()){
233
                ((TaxonNode)getEntity()).setUnplaced(unplaced);
234
            }
232
            ((TaxonNode)getEntity()).setUnplaced(unplaced);
235 233
		} else if (eventSource == checkbox_openInEditor) {
236 234
			setOpenInEditor(checkbox_openInEditor.getSelection());
237 235
		} else if (eventSource == selectionNodeAgentRelation){

Also available in: Unified diff