[open-ils-commits] r13436 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jun 23 08:59:21 EDT 2009


Author: phasefx
Date: 2009-06-23 08:59:20 -0400 (Tue, 23 Jun 2009)
New Revision: 13436

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
the middle layer lets staff change the pickup lib of a hold already on the holds shelf if they have the UPDATE_PICKUP_LIB_FROM_HOLDS_SHELF permission.  It'll create a new transit.  So let the staff client allow it too

Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2009-06-22 20:45:20 UTC (rev 13435)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2009-06-23 12:59:20 UTC (rev 13436)
@@ -332,7 +332,7 @@
                                 var deny_edit_because_of_transit = false;
                                 for (var i = 0; i < obj.retrieve_ids.length; i++) {
                                     var hold = obj.holds_map[ obj.retrieve_ids[i].id ];
-                                    if (hold.status() > 2 /* Which means holds that are In-Transit or Ready for Pickup */) deny_edit_because_of_transit = true;
+                                    if (hold.status() == 3 /* In-Transit */) deny_edit_because_of_transit = true;
                                 }
                                 if (deny_edit_because_of_transit) {
                                     alert(document.getElementById('circStrings').getString('staff.circ.holds.error.may_not_edit_pickup_lib_for_hold_intransit'));



More information about the open-ils-commits mailing list