webstaff: Allow adding vol/copy to an empty bib (or when no vol/lib is selected)
authorMike Rylander <mrylander@gmail.com>
Wed, 9 Sep 2015 23:51:06 +0000 (19:51 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:21 +0000 (15:44 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 0fb437e..9639157 100644 (file)
@@ -840,6 +840,8 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
             );
         }
 
+        if (raw.length == 0) raw.push({});
+
         egCore.net.request(
             'open-ils.actor',
             'open-ils.actor.anon_cache.set_value',