Remove restriction of editing pickup-lib for holds in transit
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Nov 2009 23:17:16 +0000 (23:17 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Nov 2009 23:17:16 +0000 (23:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14727 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
Open-ILS/xul/staff_client/server/patron/holds.js

index bd77527..d66fe12 100644 (file)
@@ -392,7 +392,6 @@ staff.circ.holds.already_suspended.plural=Holds %1$s were already suspended.
 staff.circ.holds.unexpected_error.not_likely_modified=Holds not likely modified.
 staff.circ.holds.unexpected_error.not_likely_activated=Holds not likely activated.
 staff.circ.holds.unexpected_error.not_likely_suspended=Holds not likely suspended.
-staff.circ.holds.error.may_not_edit_pickup_lib_for_hold_intransit=You may not edit the pickup library for holds that are in-transit or ready for pickup.
 staff.circ.holds.alt_view.label=Detail View
 staff.circ.holds.alt_view.accesskey=V
 staff.circ.holds.list_view.label=List View
index 7181b1e..ac2858e 100644 (file)
@@ -377,16 +377,6 @@ patron.holds.prototype = {
                             try {
                                 JSAN.use('util.widgets'); JSAN.use('util.functional');
 
-                                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 ].hold;
-                                    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'));
-                                    return;
-                                }
-
                                 var list = util.functional.map_list(
                                     obj.data.list.aou,
                                     function(o) {