webstaff: exclude deleted locations from SCT editor
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 20:04:30 +0000 (16:04 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 20:04:30 +0000 (16:04 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/admin/serials/app.js

index 7423096..71ac4f2 100644 (file)
@@ -89,7 +89,10 @@ function(egCore , $q) {
 
     service.get_locations = function(orgs) {
         return egCore.pcrud.search('acpl',
-            {owning_lib : orgs},
+            {
+                owning_lib : orgs,
+                deleted    : 'f'
+            },
             {order_by : { acpl : 'name' }}, {atomic : true}
         );
     };