Merge branch 'RED-7069-related' into 'master'
Resolve RED-7069 "Related" Closes RED-7069 See merge request redactmanager/red-ui!34
This commit is contained in:
commit
e9f9420bba
@ -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,
|
||||
|
||||
@ -173,7 +173,7 @@ export class DictionaryService extends EntitiesService<IDictionary, Dictionary>
|
||||
.filter(d =>
|
||||
isImage
|
||||
? (isOCR ? [...IMAGE_CATEGORIES, 'ocr'] : IMAGE_CATEGORIES).includes(d.type)
|
||||
: (isHint ? d.hint : !d.hint) && !d.virtual && ![...IMAGE_CATEGORIES, 'ocr'].includes(d.type),
|
||||
: (isHint ? d.hint : !d.hint) && !d.virtual && !d.systemManaged && ![...IMAGE_CATEGORIES, 'ocr'].includes(d.type),
|
||||
)
|
||||
.forEach(d => !types.find(t => t.id === d.id) && types.push(d));
|
||||
return types.sort((a, b) => a.label.localeCompare(b.label));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user