From 6510c2bdca8cd9d8536cb105350b24e8f447ebd6 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 14 Mar 2008 17:37:49 +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/trunk@9015 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 b95994b266..cf141f8d15 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.43.2