From 1002f8cd49bb47c2d7acc54195ffeb52547f455d Mon Sep 17 00:00:00 2001 From: Dan Briem Date: Tue, 24 Jan 2023 23:11:08 -0500 Subject: [PATCH] LP#2003755 No Stat Cat Change Indication When Applying Template Add indicator styles on statistical category form fields when they are applied by a template in the Angular Holdings Editor. Signed-off-by: Dan Briem Signed-off-by: Beth Willis Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts index ca4b317541..624e7bcf18 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts @@ -561,6 +561,11 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit { if (value[+catId] !== null) { this.statCatValues[+catId] = value[+catId]; this.statCatChanged(+catId); + // Indicate this value changed in the form + const attr = this.batchAttrs.find(attr => + attr.name?.split('_').pop() === catId + ); + if (attr) { attr.hasChanged = true; } } }); return; -- 2.11.0