RED-8762: do not update addToDictionaryAction for dossier dictionaries when... #446
@ -158,7 +158,22 @@ public class DictionaryService {
|
||||
public void updateDossierType(String type, String dossierTemplateId, UpdateTypeValue typeValue, String 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