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 21:57:51 +0000 (16:57 -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 9629c31..ca4b317 100644 (file)
@@ -645,7 +645,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 {