Bug 5670: Use Koha.Preference to retrieve syspref from templates

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-10-17 14:49:48 +01:00 committed by Kyle M Hall
parent 56fbbe237f
commit c517689bb6
4 changed files with 2 additions and 4 deletions

View File

@ -1013,7 +1013,7 @@ $(document).ready(function() {
[% END %]
[% IF ( step_4 ) %]
[% IF ( HouseboundModule ) %]
[% IF Koha.Preference('HouseboundModule') %]
<fieldset class="rows" id="memberentry_housebound_roles">
<legend id="housebound_roles">Housebound roles</legend>
<ol class="radio">

View File

@ -318,7 +318,7 @@ function validate1(date) {
<!-- End Upload Patron Image Section -->
[% IF ( HouseboundModule ) %]
[% IF Koha.Preference('HouseboundModule') %]
<div id="houseboundroles">
<h3>Housebound roles</h3>
<div class="rows">

View File

@ -750,7 +750,6 @@ $template->param(
# HouseboundModule data
$template->param(
HouseboundModule => C4::Context->preference("HouseboundModule"),
housebound_role => Koha::Patron::HouseboundRoles->find($borrowernumber),
);

View File

@ -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'),