[open-ils-commits] r19237 - branches/rel_1_6_2/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 20 14:59:04 EST 2011
Author: phasefx
Date: 2011-01-20 14:59:00 -0500 (Thu, 20 Jan 2011)
New Revision: 19237
Modified:
branches/rel_1_6_2/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
don't offer to cancel related transits that have already completed when canceling holds. related to 19234, but data structure is different
Modified: branches/rel_1_6_2/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/rel_1_6_2/Open-ILS/xul/staff_client/server/patron/holds.js 2011-01-20 19:58:19 UTC (rev 19236)
+++ branches/rel_1_6_2/Open-ILS/xul/staff_client/server/patron/holds.js 2011-01-20 19:59:00 UTC (rev 19237)
@@ -773,7 +773,8 @@
if (r == 0) {
var transits = [];
for (var i = 0; i < obj.retrieve_ids.length; i++) {
- if (obj.holds_map[ obj.retrieve_ids[i].id ].transit()) {
+ var transit = obj.holds_map[ obj.retrieve_ids[i].id ].transit();
+ if (transit && ! transit.dest_recv_time() ) {
transits.push( obj.retrieve_ids[i].barcode );
}
var robj = obj.network.simple_request('FM_AHR_CANCEL',[ ses(), obj.retrieve_ids[i].id]);
More information about the open-ils-commits
mailing list