LP#1695029-Webstaff Fix Patron Registration page never loading user/rogan/lp1695029_patronreg_signoff
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Tue, 27 Jun 2017 19:06:48 +0000 (15:06 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Mon, 17 Jul 2017 14:57:36 +0000 (10:57 -0400)
It looks like there was a variable mistype causing the page
to not load, but the setting that the lp bug mentions wasn't being
properly bound and needed to be wrapped to a boolean.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 4e53fde..2a2757f 100644 (file)
@@ -499,8 +499,8 @@ angular.module('egCoreMod')
                 // apply default user setting values
                 angular.forEach(setting_types, function(stype, index) {
                     if (stype.reg_default() != undefined) {
-                        service.user_settings[setting.name()] = 
-                            setting.reg_default();
+                        service.user_settings[stype.name()] =
+                            Boolean(stype.reg_default());
                     }
                 });
             }