From e2240e3e3d7b36abf3b766cbf02f7d6ee1c57f3e Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 4 Jan 2010 15:19:11 +0000 Subject: [PATCH] In the 'Captured for Hold' section of the Item Details, use the uber hold details method to populate the notify_count field ('Notices' column) git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@15256 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/copy_details.xul | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/copy_details.xul b/Open-ILS/xul/staff_client/server/circ/copy_details.xul index 3122a5c94c..0832194532 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_details.xul +++ b/Open-ILS/xul/staff_client/server/circ/copy_details.xul @@ -123,7 +123,8 @@ $('r_hold').disabled = true; if (g.hold) { $('r_hold').disabled = false; - var status_robj = g.network.simple_request('FM_AHR_STATUS',[ ses(), g.hold.id() ]); + var better_fleshed_hold_blob = g.network.simple_request('FM_AHR_BLOB_RETRIEVE.authoritative',[ ses(), g.hold.id() ]); + var status_robj = better_fleshed_hold_blob.status; JSAN.use('circ.util'); var columns = circ.util.hold_columns( { @@ -139,7 +140,7 @@ JSAN.use('util.list'); g.list = new util.list('hold'); g.list.init( { 'columns' : columns, 'map_row_to_columns' : circ.util.std_map_row_to_columns(), }); - g.list.append( { 'row' : { 'my' : { 'ahr' : g.hold, 'acp' : g.copy, 'status' : status_robj, } } }); + g.list.append( { 'row' : { 'my' : { 'ahr' : better_fleshed_hold_blob.hold, 'acp' : g.copy, 'status' : status_robj, } } }); JSAN.use('patron.util'); var au_obj = patron.util.retrieve_fleshed_au_via_id( ses(), g.hold.usr() ); -- 2.11.0