From 0ee36fe530dcb8d6e55797faea4527ec6e643b8f Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 2 Nov 2009 23:17:16 +0000 Subject: [PATCH] Remove restriction of editing pickup-lib for holds in transit 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 | 1 - Open-ILS/xul/staff_client/server/patron/holds.js | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index bd77527bdb..d66fe129b9 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -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 diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 7181b1e734..ac2858eced 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -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) { -- 2.11.0