webstaff: Pass IDs instead of objects for prefix and suffix
authorMike Rylander <mrylander@gmail.com>
Mon, 28 Sep 2015 15:02:44 +0000 (11:02 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:47 +0000 (14:58 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index d38cdd7..5863f92 100644 (file)
@@ -1286,6 +1286,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                     perCnCopies[cn_id].push(cp);
                 }
                 cp.call_number(cn_id); // prevent loops in JSON-ification
+                cnHash[cn_id].prefix(cnHash[cn_id].prefix().id()); // un-object-ize some fields
+                cnHash[cn_id].suffix(cnHash[cn_id].suffix().id()); // un-object-ize some fields
             });
 
             angular.forEach(perCnCopies, function (v, k) {