From: Dan Briem Date: Wed, 25 Jan 2023 04:11:08 +0000 (-0500) Subject: LP#2003755 No Stat Cat Change Indication When Applying Template X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1002f8cd49bb47c2d7acc54195ffeb52547f455d;p=Evergreen.git 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 --- 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;