Compare commits

...

2 Commits

Author SHA1 Message Date
Dominique Eifländer
f182be3db0 Merge branch 'RED10758' into 'master'
RED-10758: Fix remove and recategorize request in applicationType DocuMine

See merge request redactmanager/red-ui!767
2025-01-29 09:30:57 +01:00
Rosario Allegro
81a32f6d58 RED-10758: Fix remove and recategorize request in applicationType DocuMine 2025-01-28 15:34:17 +01:00
2 changed files with 8 additions and 2 deletions

View File

@ -137,7 +137,11 @@ export class AnnotationActionsService {
let recategorizeBody: List<IRecategorizationRequest> | IBulkRecategorizationRequest;
if (result.option === RedactOrHintOptions.ONLY_HERE || result.option === RectangleRedactOptions.ONLY_THIS_PAGE) {
if (
result.option === RedactOrHintOptions.ONLY_HERE ||
result.option === RectangleRedactOptions.ONLY_THIS_PAGE ||
this.#isDocumine
) {
recategorizeBody = annotations.map(annotation => {
const body: IRecategorizationRequest = {
annotationId: annotation.id,
@ -167,6 +171,7 @@ export class AnnotationActionsService {
};
}
result.pageNumbers = result.pageNumbers || [];
await this.#processObsAndEmit(
this._manualRedactionService.recategorizeRedactions(
recategorizeBody,
@ -606,6 +611,7 @@ export class AnnotationActionsService {
redactions: AnnotationWrapper[],
dialogResult: RemoveRedactionResult,
): List<IRemoveRedactionRequest | IBulkLocalRemoveRequest> {
dialogResult.pageNumbers = dialogResult.pageNumbers || [];
if (dialogResult.bulkLocal || !!dialogResult.pageNumbers.length) {
return dialogResult.positions.map((position, index) => ({
value: redactions[index].value,

@ -1 +1 @@
Subproject commit fc8be33dc6d33642ae207b6ae4c17a6ec254d11a
Subproject commit 7f13fa62d3d2b346c609bc4978cff75f37f1ee6b