Merge branch 'resize_hotfix' into 'master'

hotfix: resizing a rule-based entity with dict does not work

See merge request redactmanager/persistence-service!318
This commit is contained in:
Kilian Schüttler 2024-01-23 16:54:11 +01:00
commit a6eda4841a

View File

@ -137,8 +137,7 @@ public class ManualRedactionDictionaryUpdateHandler {
public Set<String> updateDictionaryForResizeRedactions(String dossierId, String fileId, ManualResizeRedactionEntity resizeRedaction, EntityLogEntry entityLogEntry) {
if (resizeRedaction.getUpdateDictionary() != null && resizeRedaction.getUpdateDictionary() && resizeRedaction.getStatus()
.equals(AnnotationStatus.APPROVED) && (entityLogEntry.isDictionaryEntry() || entityLogEntry.isDossierDictionaryEntry())) {
if (resizeRedaction.getUpdateDictionary() != null && resizeRedaction.getUpdateDictionary() && resizeRedaction.getStatus().equals(AnnotationStatus.APPROVED)) {
var dossier = dossierPersistenceService.findByDossierId(dossierId);