Project

General

Profile

Revision ff687253

IDff687253addd0c5c2143bb2f7d48f70354d1a8de
Parent 65b0eef9
Child e8daeef6

Added by Patrick Plitzner over 1 year ago

ref #7679 Evaluate DB prefs for publish flag

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java
394 394
    }
395 395

  
396 396
    public boolean is_publish() {
397
        return checkbox_publish!=null?checkbox_publish.getSelection():false;
397
        boolean isPublishPreference = true;
398
        CdmPreference defaultPublish = PreferencesUtil.getPreferenceFromDB(PreferencePredicate.DefaultBehaviourForPublishFlag);
399
        if (defaultPublish != null && defaultPublish.getValue().equals(IPreferenceKeys.DO_NOT_PUBLISH)){
400
            isPublishPreference = false;
401
        }
402
        return checkbox_publish!=null?checkbox_publish.getSelection():isPublishPreference;
398 403
    }
399 404

  
400 405
    public void set_publish(boolean publish) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)