RED-8762: do not update addToDictionaryAction for dossier dictionaries when updating dossier template dictionary
(cherry picked from commit 77db059a2ed2fad74c687c7d7c1a7c16722aee1b)
This commit is contained in:
parent
59874cbeb4
commit
63c797d419
@ -158,7 +158,22 @@ public class DictionaryService {
|
|||||||
public void updateDossierType(String type, String dossierTemplateId, UpdateTypeValue typeValue, String dossierId) {
|
public void updateDossierType(String type, String dossierTemplateId, UpdateTypeValue typeValue, String dossierId) {
|
||||||
|
|
||||||
accessControlService.verifyUserIsDossierOwner(dossierId);
|
accessControlService.verifyUserIsDossierOwner(dossierId);
|
||||||
updateType(dossierTemplateId, toTypeId(type, dossierTemplateId, dossierId), typeValue);
|
// we do not set the flag addToDictionaryAction when updating the global type
|
||||||
|
dictionaryManagementService.updateTypeValue(toTypeId(type, dossierTemplateId, dossierId),
|
||||||
|
Type.builder()
|
||||||
|
.dossierTemplateId(dossierTemplateId)
|
||||||
|
.hexColor(typeValue.getHexColor())
|
||||||
|
.recommendationHexColor(typeValue.getRecommendationHexColor())
|
||||||
|
.skippedHexColor(typeValue.getSkippedHexColor())
|
||||||
|
.rank(typeValue.getRank())
|
||||||
|
.isHint(typeValue.isHint())
|
||||||
|
.isCaseInsensitive(typeValue.isCaseInsensitive())
|
||||||
|
.isRecommendation(typeValue.isRecommendation())
|
||||||
|
.description(typeValue.getDescription())
|
||||||
|
.label(typeValue.getLabel())
|
||||||
|
.hasDictionary(typeValue.isHasDictionary())
|
||||||
|
.autoHideSkipped(typeValue.isAutoHideSkipped())
|
||||||
|
.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user