Bug 20799: (QA follow-up) Move syspref check
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 22 Jul 2020 09:09:29 +0000 (10:09 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 12:11:53 +0000 (14:11 +0200)
commit3b9c0f338bdacb579ef4d68d1e3dc85515419929
treef1c4d948266bcfba93e82a4a7895880376cf2bc7
parent4cf04214d381dd9a9eed28a2ee24e0c01eaaf36f
Bug 20799: (QA follow-up) Move syspref check

This patch moves the syspref check into the controller to save a DB
query if the module is not enabled.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

JD - amended patch: removing trailing parenthesis in the IF statement

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
catalogue/detail.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt