handle undefined values for email/hold checkboxes
authorJason Etheridge <jason@EquinoxInitiative.org>
Mon, 30 Jul 2018 20:08:38 +0000 (16:08 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Mon, 30 Jul 2018 20:08:38 +0000 (16:08 -0400)
Open-ILS/web/js/ui/default/staff/acq/services/requests.js

index f44e9d9..013b083 100644 (file)
@@ -188,7 +188,7 @@ function($uibModal , $q , egCore , egOrg , ngToast) {
                     angular.forEach(['hold', 'email_notify'], function(field) {
                         if (request[field] == 't') {
                             request[field] = true;
-                        } else if (request[field] == 'f') {
+                        } else if (request[field] == 'f' || typeof request[field] == 'undefined') {
                             request[field] = false;
                         }
                     });