Merge branch 'RED-10289' into 'master'

RED-10289: Fixed image placeholders are only replaced in tables

Closes RED-10289

See merge request redactmanager/redaction-report-service!103
This commit is contained in:
Dominique Eifländer 2024-11-04 09:48:02 +01:00
commit e51fc5eb74
3 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,7 @@ public class WordReportGenerationService {
}
}
}
replaceParagraphForImagePlaceholder(doc.getParagraphs(), imagePlaceholder, img);
}
}

View File

@ -176,7 +176,7 @@ public class RedactionReportIntegrationTest {
});
List<ReportRedactionEntry> reportEntries = entityLogConverterService.convertAndSort(DOSSIER_ID, FILE_ID, entityLog, legalBasisMapping, new HashMap<>());
var wordTemplateResource = new ClassPathResource("templates/Justification Appendix A1.docx");
var wordTemplateResource = new ClassPathResource("templates/AllPlaceholders.docx");
var imageResource = new ClassPathResource("files/signature-40145.png");
var placeholders = buildPlaceHolderModel(Map.of("{{dossier.attribute.ActiveSubstance}}",