From 1c0866059a0fa1487554a4dbf5e3ff4a4fcc24b3 Mon Sep 17 00:00:00 2001 From: George Date: Fri, 25 Aug 2023 17:32:03 +0300 Subject: [PATCH] RED-7513, allow editing of section when reason is not changed. --- .../modules/file-preview/services/annotation-actions.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts index 43e6136a1..6f661da35 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts @@ -117,7 +117,7 @@ export class AnnotationActionsService { return; } - if (!this.#isDocumine && result.legalBasis !== annotations[0].legalBasis) { + if (!this.#isDocumine && (result.legalBasis !== annotations[0].legalBasis || result.section !== annotations[0].section)) { const changeLegalBasisBody = annotations.map(annotation => ({ annotationId: annotation.id, legalBasis: result.legalBasis,