From f6f67d017fe832c7f310a9bcfd65566c451e65b9 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 14 Mar 2008 17:38:39 +0000 Subject: [PATCH] this is refactored code, and the environment where it came from had org ids, but I was passing org objects here by mistake in it's new location, so.. flattening the orgs git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9016 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index 70bc6a4aa2..dc69407d15 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -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' ] -- 2.11.0