Bug 19797: [16.11.x] Restore alert subscribers 16.11.x
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Dec 2017 20:28:00 +0000 (17:28 -0300)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 27 Feb 2018 22:29:01 +0000 (11:29 +1300)
commit4e5140fb02bced3f3476dd19df89a496760d9518
treeb50d0b05be80de4885c1002fb8c3fc4bd998029e
parent667c93d551a0b23eba861fd6ba2292dfac962133
Bug 19797: [16.11.x] Restore alert subscribers

This patch fixes a bad conflict between bug 18726 and bug 10357.
The alerttype variable was not passed to the template on 16.11.x

Test plan:
- Add a subscription
- Make sure you set a notice template for 'notification' on the first page
- Go to the record in the OPAC
- Subscribe to email notifications from the Subscriptions tab > More detail
- Verify that the alert table in the database has the entry for the subscribed patron
- Verify that in the OPAC it now asks you to cancel subscription

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-alert-subscribe.pl