Project

General

Profile

« Previous | Next » 

Revision ad2f71e9

Added by Katja Luther about 5 years ago

ref #8088: adapt labels and fix publish flag in edit wizard

View differences:

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

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

  
196 197
            complete = true;
197 198
        }
198 199
		if (entity instanceof TaxonNode) {
......
388 389
	private void setTaxon(Taxon taxon) {
389 390
		this.taxon = taxon;
390 391
		getEntity().setTaxon(taxon);
392
		this.set_publish(taxon.isPublish());
391 393
		if (isCreateNew()){
392 394
		    textNewTaxonName.setText(taxon.getName().getTitleCache());
393 395
		    if (taxon.getSec() != null){

Also available in: Unified diff