]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 23 Jul 2024 10:26:02 +0000 (12:26 +0200)
commit3b3094a983b29114f188b257607c585a83d07b1f
tree7c16bf72989f3c49d7bdb91a5997ce986e0a0215
parent45007a58e23a1840b79b2d73ea21522d610ca9ce
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>
(cherry picked from commit 3cf17aa16f70e978f654345274972b65ca7b6164)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
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