RED-7513, allow editing of section when reason is not changed.

This commit is contained in:
George 2023-08-25 17:32:03 +03:00
parent 658f7d9ea5
commit 1c0866059a

View File

@ -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,