LP#1685929: (follow-up) fix passing copy when opening volume/copy editor
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 25 Aug 2017 19:51:44 +0000 (15:51 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 25 Aug 2017 19:52:22 +0000 (15:52 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js

index bbc8bbe..62713e4 100644 (file)
@@ -361,8 +361,10 @@ function($scope , $q , $window , $location , $timeout , egCore , checkinSvc , eg
         var itemObjs = [];
         angular.forEach(items, function(i){
             var h = egCore.idl.toHash(i);
-            h['call_number.record.id'] = h.record.doc_id;
-            itemObjs.push(h);
+            itemObjs.push({
+                'call_number.record.id': h.record.doc_id,
+                'id' : h.acp.id
+            });
         });
         itemSvc.spawnHoldingsEdit(itemObjs,false,false);
     }