Project

General

Profile

Revision 46f913aa

ID46f913aa057f68ceaf7b615184639c6f3d77e421
Parent a7818829

Added by Patrick Plitzner about 2 years 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)