ref #5821: fix term handling after adapting local preferences
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / editor / definedterm / e4 / DefinedTermMenuE4.java
index 0ff695bb7ab8db4e9e73cf02ffe29a2fcc413c3b..7b29d6690ffa0b1b820705271a2d0c08a27d76c2 100644 (file)
@@ -83,7 +83,7 @@ public class DefinedTermMenuE4 {
     private void addChildTermsToMenuManager(List<MMenuElement> items, TermType termType, boolean skipChildren) {
 
         //FIXME : need a better way to find out if a term type can be editable (ticket 3853)
-        if(termType.getEmptyDefinedTermBase() != null) {
+        if(termType.getEmptyDefinedTermBase(PreferencesUtil.getGlobalLanguage()) != null) {
             Set<TermType> children = termType.getGeneralizationOf();
             // term type has no children, so create menu item
             if(skipChildren || children.isEmpty()) {