use newInstance method of OrderedTermVocabulary for ORderedTermVocabularies
authorKatja Luther <k.luther@bgbm.org>
Tue, 5 Apr 2022 08:06:49 +0000 (10:06 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 5 Apr 2022 08:06:49 +0000 (10:06 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/operation/CreateTermVocabularyOperation.java

index febdb92637447ce85de335254475fdaecef0f003..b986426fc7a6c2e03e459a854aaf0b5030256f6a 100644 (file)
@@ -52,7 +52,8 @@ public class CreateTermVocabularyOperation extends AbstractPostTaxonOperation {
           DefinedTermBase test = type.getEmptyDefinedTermBase(PreferencesUtil.getGlobalLanguage());\r
           TermVocabulary termVocabulary = null;\r
           if (test instanceof OrderedTermBase){\r
-             termVocabulary = OrderedTermVocabulary.NewInstance(definedEditorInput.getTermType(),null, null,"Untitled",null, null, PreferencesUtil.getGlobalLanguage());\r
+             termVocabulary = OrderedTermVocabulary.NewInstance(definedEditorInput.getTermType());\r
+             termVocabulary.setLabel("Untitled", PreferencesUtil.getGlobalLanguage());       \r
           }\r
 \r
           if (termVocabulary == null){\r