]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 25 Jul 2024 07:58:11 +0000 (09:58 +0200)
commitf8ed88e98ea1d4091cd8628e631285fe8b6bfcd6
tree98f04fc45bfab4610208fe25b1350f30f0f6e496
parent51157a763bf03f7aa11b3c7b6692f5e63cec1333
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>
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