Revision cd7d5ac2
Added by Katja Luther 5 months ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java | ||
---|---|---|
75 | 75 |
|
76 | 76 |
private Map<TaxonBase, TaxonBaseDeletionConfigurator> toDeletes = new HashMap<>(); |
77 | 77 |
private Set<Synonym> toSaveNewSynonyms = new HashSet<>(); |
78 |
private List<TaxonBase> toSaveConcepts = new ArrayList<>();
|
|
79 |
private List<TaxonName> toSaveNewNames = new ArrayList<>();
|
|
78 |
private Set<TaxonBase> toSaveConcepts = new HashSet<>();
|
|
79 |
private Set<TaxonName> toSaveNewNames = new HashSet<>();
|
|
80 | 80 |
|
81 | 81 |
private Set<AbstractPostOperation> operations = new HashSet<>(); |
82 | 82 |
|
... | ... | |
396 | 396 |
// } |
397 | 397 |
|
398 | 398 |
if (!toSaveNewNames.isEmpty()){ |
399 |
CdmStore.getService(INameService.class).merge(toSaveNewNames, true); |
|
399 |
List<TaxonName> listNames = new ArrayList(toSaveNewNames); |
|
400 |
CdmStore.getService(INameService.class).merge(listNames, true); |
|
400 | 401 |
} |
401 | 402 |
if (!toSaveConcepts.isEmpty()){ |
402 |
CdmStore.getService(ITaxonService.class).merge(toSaveConcepts, true); |
|
403 |
List<TaxonBase> listTaxa = new ArrayList(toSaveConcepts); |
|
404 |
CdmStore.getService(ITaxonService.class).merge(listTaxa, true); |
|
403 | 405 |
} |
404 | 406 |
|
405 | 407 |
toSaveNewNames.clear(); |
Also available in: Unified diff
ref #10177: add names only once to the list of namesToBeSaved