From bc30f99068169cfad61b571da4d207acc2167c1a Mon Sep 17 00:00:00 2001 From: Katja Luther Date: Thu, 23 Mar 2023 11:39:00 +0100 Subject: [PATCH] ref #9766: fix moving terms via menu --- .../e4/handler/MoveDefinedTermHandler.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/handler/MoveDefinedTermHandler.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/handler/MoveDefinedTermHandler.java index aada698db..7528c7b50 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/handler/MoveDefinedTermHandler.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/handler/MoveDefinedTermHandler.java @@ -81,14 +81,18 @@ public class MoveDefinedTermHandler { if(selectedTerms.size()==1){ if (selectedTerms.get(0) instanceof TermVocabularyDto) { - if (VocabularyEnum.getVocabularyEnumByUuid(((TermVocabularyDto)selectedTerms.get(0)).getUuid()) != null) - MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed"); - return; + if (VocabularyEnum.getVocabularyEnumByUuid(((TermVocabularyDto)selectedTerms.get(0)).getUuid()) != null) { + MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed"); + return; + } + } if (selectedTerms.get(0) instanceof TermDto) { - if (VocabularyEnum.getVocabularyEnumByUuid(((TermDto)selectedTerms.get(0)).getVocabularyUuid()) != null) - MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed"); - return; + if (VocabularyEnum.getVocabularyEnumByUuid(((TermDto)selectedTerms.get(0)).getVocabularyUuid()) != null) { + MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed"); + return; + } + } } AbstractTermDto target = selectedTerms.get(0); -- 2.34.1