Bug 7641 - Followup - 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)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 15 May 2012 13:48:12 +0000 (15:48 +0200)
commitb04899bafde2a7fa06f30bb63020a1a5be774cbc
treeb8b37d10756db52c572bfe6fd29290f77cf9ddea
parent67fcd4fe5b2463d3954a9d8e5ad3dbdd0946192c
Bug 7641 - Followup - 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.

http://bugs.koha-community.org/show_bug.cgi?id=8084
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
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