]> git.evergreen-ils.org Git - Evergreen.git/commit
Patch from Jeff Godin, backported from trunkified version:
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 17:45:56 +0000 (17:45 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 17:45:56 +0000 (17:45 +0000)
commit9dda7f5b674485cfe49c3e7757557789e6fea66f
treed5ba2d18d5b0ea1b0d370b4a2387c395af3e61ff
parentb1c2e1546f8a886c5dddfb6ef2fc93aa9c1f2887
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_1_6_1@18857 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/patron/holds.js