LP#1402797 Fix boolean assumption
authorMike Rylander <mrylander@gmail.com>
Tue, 11 Nov 2014 18:25:55 +0000 (13:25 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Feb 2015 16:58:27 +0000 (11:58 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/patron/app.js

index bd7cb8a..b51a110 100644 (file)
@@ -394,7 +394,7 @@ function($q , $timeout , $location , egCore,  egUser , $locale) {
 
         angular.forEach(
             service.current.addresses(), 
-            function(addr) { if (!addr.valid()) fail = true }
+            function(addr) { if (addr.valid() == 'f') fail = true }
         );
 
         return $q.when(fail);