]> git.koha-community.org Git - koha.git/commit
Bug 8084: Follow fix for 7641 - Suspend Until not set on by suspend button.
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Apr 2012 14:11:00 +0000 (10:11 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 16 May 2012 02:39:28 +0000 (14:39 +1200)
commit5fea1d6f11a9845ecc61e6b5d129d2dc43901c04
tree19f792571e697221761d9cc6bf3b0c81714882c7
parent1d4a3b5308504f9a697348b2e107da68c7f7bb4a
Bug 8084: Follow fix for 7641 - Suspend Until not set on by suspend button.

For request.pl, there are two ways to suspend a reserve, either
by using the 'suspend' button for an individual reserve, or by
using the 'Update hold(s)' button with suspend until dates set.

If the 'suspend' button is used, any date in the 'suspend until'
field is ignored. This commit fixes this issue.

  * Add suspend_until date to suspend button link via jquery
  * Add optional date to ToggleSuspend()
  * Add KohaDates plugin where necessary

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
passes tests, tested:
* suspend all holds from circ.pl
* suspend one hold from circ.pl
* suspend all holds from moremember.pl
* suspend one hold from moremember.pl
   --- NOTE: clicking suspend all holds without setting a date will mean the holds must be manually unsuspended. I'm not sure this is intentional?
* suspend a specific hold using the in-table button on reserves
* suspend a specific hold using the "update hold" button

500 error is gone.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Reserves.pm
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
reserve/request.pl