Bugzilla – Attachment 31416 Details for
Bug 12878
Not having the permission circulate_override_renewals triggers error that prevents checkouts table from loading
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12878 - Not having the permission circulate_override_renewals triggers error that prevents checkouts table from loading
Bug-12878---Not-having-the-permission-circulateove.patch (text/plain), 1.74 KB, created by
Kyle M Hall
on 2014-09-05 15:49:21 UTC
(
hide
)
Description:
Bug 12878 - Not having the permission circulate_override_renewals triggers error that prevents checkouts table from loading
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2014-09-05 15:49:21 UTC
Size:
1.74 KB
patch
obsolete
>From b26fddda60f5d4ae53544e3bdab9a3c8a1748eb4 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 5 Sep 2014 11:35:55 -0400 >Subject: [PATCH] Bug 12878 - Not having the permission circulate_override_renewals triggers error that prevents checkouts table from loading > >Not having the override_renewals permission will trigger the following >error on circulation.pl: > >Uncaught SyntaxError: Unexpected token ; > >This prevents the rest of the javascript on the page from executing, >including but not limited to the loading of the checkouts table. > >Test Plan: >1) Using an account without the override renewals permission, start > to check out items to a patron. >2) Note the checkouts table is broken >3) Apply this patch >4) Reload the page >5) Note the checkouts table is now working >--- > .../prog/en/modules/circ/circulation.tt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 9734c0f..41091f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -32,7 +32,7 @@ var theme = "[% theme %]"; > var borrowernumber = "[% borrowernumber %]"; > var branchcode = "[% branch %]"; > var exports_enabled = "[% exports_enabled %]"; >-var AllowRenewalLimitOverride = [% CAN_user_circulate_override_renewals && AllowRenewalLimitOverride %]; >+var AllowRenewalLimitOverride = [% ( CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') ) || 0 %]; > var relatives_borrowernumbers = new Array(); > [% FOREACH b IN relatives_borrowernumbers %] > relatives_borrowernumbers.push("[% b %]"); >-- >1.7.2.5
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 12878
:
31416
|
31417