]> git.koha-community.org Git - koha.git/commit
Bug 37247: Fix display of "closed"
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Jul 2024 12:47:42 +0000 (14:47 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 1 Aug 2024 15:26:38 +0000 (17:26 +0200)
commit19e318c545c92e377d5b43c40208fd8dfa4564fe
treee92b202ef2f0285b69102f561b3384476f30f5e6
parente3a0ad463b6e1e5e024379ede6839993582bee36
Bug 37247: 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: Katrin Fischer <katrin.fischer@bsz-bw.de>
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