Bug 24786: (QA follow-up) Hide archived registers
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Nov 2020 10:55:13 +0000 (10:55 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 Nov 2020 14:40:00 +0000 (15:40 +0100)
commit349591b3a4ee9620f4f4f337173efd84ab3227cf
tree9b0ded3e2b3cec8c22589dda0bc0b6939867dbaa
parent3865e38ebbb945ae8b7943d301a119da0e28b5c9
Bug 24786: (QA follow-up) Hide archived registers

This patch hides archived registers from the list when useing the
Registers template plugin.  It also includes a check for
UseCashRegisters so that if the preference is disabled after some
registers have been defined then the plugin will no longer return the
list regardless.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Template/Plugin/Registers.pm