LP 1999696 - Saving stat cats and values in holdings templates
authorJessica Woolford <jwoolford@biblio.org>
Fri, 6 Jan 2023 20:32:42 +0000 (15:32 -0500)
committerMichele Morgan <mmorgan@noblenet.org>
Mon, 23 Jan 2023 22:02:46 +0000 (17:02 -0500)
Updating the saveTemplate function so that is consults statCatValues

Signed-off-by: Jessica Woolford <jwoolford@biblio.org>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts

index 5841b32..1826df7 100644 (file)
@@ -646,7 +646,7 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit {
                 const statId = field.match(/stat_cat_(\d+)/)[1];
                 if (!template.statcats) { template.statcats = {}; }
 
-                template.statcats[statId] = value;
+                template.statcats[statId] = this.statCatValues[statId];
 
             } else {