From f904a93ff85121503cd7d2fc065b3b0b2f2a24bb Mon Sep 17 00:00:00 2001 From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Mon, 18 Apr 2011 15:37:12 +0000 Subject: [PATCH] fixes Edit Volumes action by flattening the volume objects before updating them git-svn-id: svn://svn.open-ils.org/ILS/trunk@20158 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/util.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index b90453f30f..fe87355d56 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -693,6 +693,13 @@ cat.util.batch_edit_volumes = function(fleshed_volumes) { if (volumes.length < 1) { return false; } + volumes = util.functional.map_list( volumes, function(o){ + if (typeof o.suffix() == 'object') { o.suffix( o.suffix().id() ); } + if (typeof o.prefix() == 'object') { o.prefix( o.prefix().id() ); } + if (typeof o.label_class() == 'object') { o.label_class( o.label_class().id() ); } + return o; + }); + var r = net.simple_request( 'FM_ACN_TREE_UPDATE', [ ses(), volumes, false, { 'auto_merge_vols' : my_xulG.auto_merge } ], -- 2.11.0