Project

General

Profile

« Previous | Next » 

Revision b4072196

Added by Katja Luther about 5 years ago

ref #8088: fix publish flag in edit wizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java
167 167
            selection_Ref.setEntity(entity.getReference());
168 168
        }
169 169
        parentTreeNode = entity.getParent();
170
		if (entity instanceof TaxonNode && parentTreeNode.getTaxon() != null) {
171
		    checkbox_publish = formFactory.createCheckbox(formElement,
172
		            "Taxon is published", entity.getTaxon().isPublish(), style);
173
		}else{
174
		    checkbox_publish = formFactory.createCheckbox(formElement,
175
                    "Taxon is published", true, style);
176
		}
170

  
177 171
		checkbox_publish.setEnabled(isCreateNew());
178 172
		if(isCreateNew()){
179 173
		   setParentTreeNode(entity.getParent());
......
193 187

  
194 188
	    } else{
195 189
            setTreeNode(entity);
196

  
190
            checkbox_publish.setSelection(entity.getTaxon().isPublish());
197 191
            complete = true;
198 192
        }
199 193
		if (entity instanceof TaxonNode) {

Also available in: Unified diff