]> git.koha-community.org Git - koha.git/commit
Bug 37247: [23.05.x] Fix display of "closed"
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Jul 2024 12:47:42 +0000 (14:47 +0200)
committerwainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
Thu, 25 Jul 2024 02:17:34 +0000 (02:17 +0000)
commit84faba1f19d7904d676f278c8b77baa34b8029e9
treeb0aaa02e956dce645199659e255e2b920f6976bb
parentb402e8212186ca8a05d57b7b5656aa02a73e17d9
Bug 37247: [23.05.x] Fix display of "closed"

The subscription was not shown as closed after we closed it.
This is because "closed" is not passed to the template.
It seems more reliable to rely on the subscription object (that is passed to both
serials/serials-collection.tt and serials/subscription-detail.tt, the
others are not showing the Reopen/Close buttons)

Also fetch the subscription object after and reopen/close it to display
accurate values.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt
serials/subscription-detail.pl