Bug 15569: Do not displayed "automatic renewal" if the patron cannot checkout
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 13 Jan 2016 16:36:47 +0000 (16:36 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Sat, 23 Jan 2016 19:09:47 +0000 (19:09 +0000)
commitca6bd89b852f4561fdc4ff328d19d4a71d759b7f
treef5cd943f1fa4d12113f4513747fd6137d61b94f5
parent1eda96edc515cdca38ffa8262e24de933a18ce10
Bug 15569: Do not displayed "automatic renewal" if the patron cannot checkout

If the patron cannot checkout (debarred) and on-site checkout is
enabled, the "Automatic renewal" checkbox should not be displayed on the
circulation screen.

Test plan:
Enable OnSiteCheckouts and OnSiteCheckoutsForce
Debar a patron and go on the circulation page.
Without this patch, the automatic renewal checkbox is displayed.
With this patch applied, it's not.

Patch works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt