[open-ils-commits] r20159 - branches/rel_2_1/Open-ILS/xul/staff_client/server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 18 11:37:29 EDT 2011
Author: phasefx
Date: 2011-04-18 11:37:27 -0400 (Mon, 18 Apr 2011)
New Revision: 20159
Modified:
branches/rel_2_1/Open-ILS/xul/staff_client/server/cat/util.js
Log:
fixes Edit Volumes action by flattening the volume objects before updating them
Modified: branches/rel_2_1/Open-ILS/xul/staff_client/server/cat/util.js
===================================================================
--- branches/rel_2_1/Open-ILS/xul/staff_client/server/cat/util.js 2011-04-18 15:37:12 UTC (rev 20158)
+++ branches/rel_2_1/Open-ILS/xul/staff_client/server/cat/util.js 2011-04-18 15:37:27 UTC (rev 20159)
@@ -693,6 +693,13 @@
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 } ],
More information about the open-ils-commits
mailing list