From c517689bb69a7356f71d9dc46ead313dec5bbce8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 17 Oct 2016 14:49:48 +0100 Subject: [PATCH] Bug 5670: Use Koha.Preference to retrieve syspref from templates Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- members/memberentry.pl | 1 - members/moremember.pl | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index c58185f601..6afaa7aa1e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1013,7 +1013,7 @@ $(document).ready(function() { [% END %] [% IF ( step_4 ) %] -[% IF ( HouseboundModule ) %] +[% IF Koha.Preference('HouseboundModule') %]
Housebound roles
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 94f9bb9843..39da12e22c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -318,7 +318,7 @@ function validate1(date) { -[% IF ( HouseboundModule ) %] +[% IF Koha.Preference('HouseboundModule') %]

    Housebound roles

    diff --git a/members/memberentry.pl b/members/memberentry.pl index f1fd8e3ebf..d2f462f72a 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -750,7 +750,6 @@ $template->param( # HouseboundModule data $template->param( - HouseboundModule => C4::Context->preference("HouseboundModule"), housebound_role => Koha::Patron::HouseboundRoles->find($borrowernumber), ); diff --git a/members/moremember.pl b/members/moremember.pl index 6c9c73c9a6..91fdc1f610 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -340,7 +340,6 @@ $template->param( samebranch => $samebranch, quickslip => $quickslip, housebound_role => $patron->housebound_role, - HouseboundModule => C4::Context->preference('HouseboundModule'), privacy_guarantor_checkouts => $data->{'privacy_guarantor_checkouts'}, activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), -- 2.39.5