Project

General

Profile

« Previous | Next » 

Revision 55e5323a

Added by Katja Luther almost 2 years ago

ref #10108: with new implementation createTitle is not necessary and wrong

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaMetaElement.java
112 112
    }
113 113

  
114 114
    public void createTitle() {
115
       LanguageString title = this.entity.getTitle(CdmStore.getDefaultLanguage());
116
       Map<Language, LanguageString> languageStrings = entity.getAllTitles();
117
       if (title == null || title.getText().contains("empty media")) {
118
           entity.getAllTitles().remove(title);
119
           title = LanguageString.NewInstance(entity.getTitleCache(), CdmStore.getDefaultLanguage());
120
           if (!title.getText().contains("empty media")){
121
               languageStrings.put(CdmStore.getDefaultLanguage(), title);
122
           }
123
       }
124
       text_title.setMultilanguageText(languageStrings);
115
//       LanguageString title = this.entity.getTitle(CdmStore.getDefaultLanguage());
116
//       Map<Language, LanguageString> languageStrings = entity.getAllTitles();
117
//       if (title == null || title.getText().contains("empty media")) {
118
//           entity.getAllTitles().remove(title);
119
//           title = LanguageString.NewInstance(entity.getTitleCache(), CdmStore.getDefaultLanguage());
120
//           
121
//           if (!title.getText().contains("empty media")){
122
//               languageStrings.put(CdmStore.getDefaultLanguage(), title);
123
//           }
124
//       }
125
       text_title.setMultilanguageText(this.entity.getAllTitles());
125 126
    }
126 127

  
127 128
    @Override

Also available in: Unified diff