From: Bill Erickson Date: Fri, 22 Jan 2016 03:21:15 +0000 (-0500) Subject: LP#1452950 Stat cat maps store values, not links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=87215054288fb4c23039f08f02a81e218ab29e4a;p=evergreen%2Fmasslnc.git LP#1452950 Stat cat maps store values, not links Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- 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); });