]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 25 Jul 2024 14:24:53 +0000 (14:24 +0000)
commit3900bba48e2026f11f4c3450b603ac1438eb0f5e
tree0529f4854573d1f2a2c979676d55f3b0af5bc1f4
parentfc22f96aace8cd918b1a350b4bbd7591944943c1
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: Lucas Gass <lucas@bywatersolutions.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