Patch from Jeff Godin, backported from trunkified version:
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 17:44:23 +0000 (17:44 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 17:44:23 +0000 (17:44 +0000)
commit53e6f2c3130e7de77457fc8ea0b853f6ae7640c4
treeb253f4237cf24e363a015de328e2e8aed43690cc
parent96382e4d6dc9173eabb3e48c0c4b7055d0eb915f
Patch from Jeff Godin, backported from trunkified version:

In the staff client, the holds context menu option "Edit PickupLibrary" displays and allows selection of org units that it shouldn't.

Org units whose type has can_have_users = FALSE are not valid pickup locations.

Using the default types as an example, CONS and SYS1 are invalid pickup locations.

The OPAC enforces this when allowing patrons to edit a hold.

The staff client does not enforce this when staff edit a hold.

The can_have_users() method of the au object returns a string 't' or 'f' which is then compared to 0.

The attached patch corrects this issue. ( foo == 0 becomes !isTrue(foo) ).

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18855 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/patron/holds.js