Bugzilla – Attachment 60718 Details for
Bug 18160
Error when OverDriveCirculation not enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18160 - Error when OverDriveCirculation not enabled
Bug-18160---Error-when-OverDriveCirculation-not-en.patch (text/plain), 1.94 KB, created by
Jonathan Druart
on 2017-02-27 15:23:48 UTC
(
hide
)
Description:
Bug 18160 - Error when OverDriveCirculation not enabled
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-02-27 15:23:48 UTC
Size:
1.94 KB
patch
obsolete
>From 35c9c8ced2e4a87bdcd373651538725ef08c5d5a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 <srdjan@catalyst.net.nz> > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 > //]]> > </script> > <script type="text/javascript" src="[% interface %]//[% theme %]/js/overdrive.js"></script> >+ [% IF ( OverDriveCirculation ) %] > <script type="text/JavaScript"> > $(document).ready(function() { >- [% IF ( overdrive_error ) %] >+ [% IF ( overdrive_error ) %] > KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote %]"); >- [% END %] >- [% IF ( overdrive_tab ) %] >+ [% END %] >+ [% IF ( overdrive_tab ) %] > $("#opac-user-views").tabs("select", "#opac-user-overdrive"); >- [% END %] >+ [% END %] > $("#opac-user-overdrive").each( function() { > KOHA.OverDriveCirculation.display_account_details(this); > } ); > }); > </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 18160
:
60588
|
60589
|
60590
|
60622
| 60718 |
60719