Merge branch 'release/5.28.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / e4 / details / DetailsViewerE4.java
index cb806b8ed665216b0061d37575f4dbbfa3a34d1f..bf6ebfb5127657d5b67afbcd10f86fa4fd066318 100755 (executable)
@@ -81,6 +81,7 @@ import eu.etaxonomy.taxeditor.store.StoreUtil;
 import eu.etaxonomy.taxeditor.store.UsageTermCollection;
 import eu.etaxonomy.taxeditor.termtree.e4.ICharacterEditor;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
+import eu.etaxonomy.taxeditor.ui.element.IEnableableFormElement;
 import eu.etaxonomy.taxeditor.ui.element.RootElement;
 import eu.etaxonomy.taxeditor.ui.section.agent.PersonDetailSection;
 import eu.etaxonomy.taxeditor.ui.section.agent.TeamDetailSection;
@@ -265,7 +266,7 @@ public class DetailsViewerE4 extends AbstractCdmDataViewer {
             createTeamOrPersonBaseDetailSection(rootElement);
 
         } else if (input instanceof DescriptionBase) {
-            if (((DescriptionBase)input).isComputed() && PreferencesUtil.isComputedDesciptionHandlingDisabled()){
+            if ((((DescriptionBase)input).isComputed() || ((DescriptionBase)input).isCloneForSource())&& PreferencesUtil.isComputedDesciptionHandlingDisabled()){
                 this.setDetailsEnabled(false);
             }
             if(input instanceof SpecimenDescription){
@@ -644,7 +645,7 @@ public class DetailsViewerE4 extends AbstractCdmDataViewer {
         }else{
             descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(DescriptionElementSourceSection.class, getInput().getClass().getCanonicalName()) );
             descriptionElementSourceSection.setEnabled(this.detailsEnabled);
-            descriptionElementDetailSection.setEnabled(this.detailsEnabled);
+
         }