Bugzilla – Attachment 60740 Details for
Bug 18172
Logged in user page shows internal server error if OverDriveCirculation is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18172 - Disabled Overdrive shows error on logged in user page
Bug-18172---Disabled-Overdrive-shows-error-on-logg.patch (text/plain), 2.15 KB, created by
Liz Rea
on 2017-02-28 20:24:15 UTC
(
hide
)
Description:
Bug 18172 - Disabled Overdrive shows error on logged in user page
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2017-02-28 20:24:15 UTC
Size:
2.15 KB
patch
obsolete
>From 3195963693c5ba98c3251a744162ee6601c75ca4 Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Tue, 28 Feb 2017 20:23:37 +0000 >Subject: [PATCH] Bug 18172 - Disabled Overdrive shows error on logged in user > page > >To test: >Have overdrive disabled (default state) > log into the OPAC (I did it with plack) note the error just below > the > tabs on the page. > Note that the overdrive JS is being fetched/included > Apply this patch > Restart plack/memcached > refresh the page, note that the error is gone. > Also note that the JS for Overdrive is no longer being > fetched/included. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >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..dc1c430 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -139,9 +139,10 @@ Using this account is not recommended because some parts of Koha will not functi > <li><a href="#opac-user-overdrive">OverDrive Account</a></li> > [% END %] > </ul> >- >+ [% IF ( OverDriveCirculation ) %] > <div id="opac-user-overdrive"> > </div> >+ [% END %] > <div id="opac-user-checkouts"> > [% IF ( issues_count ) %] > <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post"> >@@ -896,6 +897,7 @@ Using this account is not recommended because some parts of Koha will not functi > }); > //]]> > </script> >+ [% IF ( OverDriveCirculation ) %] > <script type="text/javascript" src="[% interface %]//[% theme %]/js/overdrive.js"></script> > <script type="text/JavaScript"> > $(document).ready(function() { >@@ -910,4 +912,5 @@ Using this account is not recommended because some parts of Koha will not functi > } ); > }); > </script> >+ [% END %] > [% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18172
:
60739
| 60740