From: phasefx Date: Mon, 18 Apr 2011 15:37:27 +0000 (+0000) Subject: fixes Edit Volumes action by flattening the volume objects before updating them X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=55767049e82ce13c2d184b3af1a1dbd700fb8683;p=evergreen%2Ftadl.git fixes Edit Volumes action by flattening the volume objects before updating them git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@20159 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 } ],