From 37ed8db8d58c6cbf64500124aab4c2427a5227bb Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 23 Feb 2017 00:35:13 +0000 Subject: [PATCH] Bug 18160 - Error when OverDriveCirculation not enabled This patch only executes OverDrive circulation JS if OverDriveCirculation pref is enabled To test: 1 - Disable OverDriveCirculation 2 - Log in to opac and view summary tab 3 - Note 'Internal server error' 4 - Apply patch 5 - Repeat and note error is not present Signed-off-by: Srdjan Signed-off-by: Mark Tompsett --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index c862a14..aa2d48d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -897,17 +897,19 @@ Using this account is not recommended because some parts of Koha will not functi //]]> + [% IF ( OverDriveCirculation ) %] + [% END %] [% END %] -- 2.1.4