From 87215054288fb4c23039f08f02a81e218ab29e4a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Jan 2016 22:21:15 -0500 Subject: [PATCH] LP#1452950 Stat cat maps store values, not links Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index d9dc78ffd5..8e128ece01 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -499,7 +499,7 @@ angular.module('egCoreMod') var entry; angular.forEach(service.stat_cats, function(cat) { angular.forEach(cat.entries(), function(ent) { - if (ent.id() == map.stat_cat_entry) + if (ent.value() == map.stat_cat_entry) entry = ent; }); }); @@ -619,7 +619,7 @@ angular.module('egCoreMod') if (existing) { // we have a mapping // if the existing mapping matches the new one, // there' nothing left to do - if (existing.stat_cat_entry() == entry.id()) return; + if (existing.stat_cat_entry() == entry.value()) return; // mappings differ. delete the old one and create // a new one below. @@ -630,7 +630,7 @@ angular.module('egCoreMod') newmap.target_usr(patron.id()); newmap.isnew(true); newmap.stat_cat(entry.stat_cat()); - newmap.stat_cat_entry(entry.id()); + newmap.stat_cat_entry(entry.value()); patron.stat_cat_entries().push(newmap); }); -- 2.11.0