Correct error in call number owning library change
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 7 Jun 2011 17:45:55 +0000 (13:45 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 10 Jun 2011 17:00:44 +0000 (13:00 -0400)
Send IDs to the backend, not objects.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/cat/copy_editor.js

index 0602c09..5512b36 100644 (file)
@@ -556,7 +556,7 @@ g.apply_owning_lib = function(ou_id) {
             var old_volume = g.map_acn[copy.call_number()];
             var acn_blob = g.network.simple_request(
                 'FM_ACN_FIND_OR_CREATE',
-                [ses(),old_volume.label(),old_volume.record(),ou_id,old_volume.prefix(),old_volume.suffix(),old_volume.label_class()]
+                [ses(),old_volume.label(),old_volume.record(),ou_id,old_volume.prefix().id(),old_volume.suffix().id(),old_volume.label_class().id()]
             );
             if (typeof acn_blob.ilsevent != 'undefined') {
                 g.error.standard_unexpected_error_alert($('catStrings').getFormattedString('staff.cat.copy_editor.apply_owning_lib.call_number.error', [copy.barcode()]), acn_blob);