this is refactored code, and the environment where it came from had org ids, but...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 17:37:49 +0000 (17:37 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 17:37:49 +0000 (17:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9015 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_editor.js

index b95994b..cf141f8 100644 (file)
@@ -85,7 +85,7 @@ function my_init() {
                                         lib = g.map_acn[ cn_id ].owning_lib();
                                     }
                                 }
-                                return lib;
+                                return typeof lib == 'object' ? lib.id() : lib;
                             }
                         ),
                         g.copies.length == 1 ? [ 'UPDATE_COPY' ] : [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]