Project

General

Profile

« Previous | Next » 

Revision d9757a33

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

  
170
		if (entity instanceof TaxonNode ) {
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
		}
171 177
		checkbox_publish.setEnabled(isCreateNew());
172 178
		if(isCreateNew()){
173 179
		   setParentTreeNode(entity.getParent());
......
187 193

  
188 194
	    } else{
189 195
            setTreeNode(entity);
190
            checkbox_publish.setSelection(entity.getTaxon().isPublish());
196

  
191 197
            complete = true;
192 198
        }
193 199
		if (entity instanceof TaxonNode) {

Also available in: Unified diff