Bugzilla – Attachment 151676 Details for
Bug 33829
Cannot add patron to patron list if PatronAutoComplete is off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33829: Fix add patron to patron list if PatronAutoComplete is off
Bug-33829-Fix-add-patron-to-patron-list-if-PatronA.patch (text/plain), 1.53 KB, created by
Jonathan Druart
on 2023-05-25 13:09:33 UTC
(
hide
)
Description:
Bug 33829: Fix add patron to patron list if PatronAutoComplete is off
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-25 13:09:33 UTC
Size:
1.53 KB
patch
obsolete
>From a8322186803728778c78094ae8f3206581d5ef72 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 May 2023 15:07:25 +0200 >Subject: [PATCH] Bug 33829: Fix add patron to patron list if > PatronAutoComplete is off > >When adding patrons to a patron list we get a JS error about undefined >variables. We can easily fix this problem by defining them even if the >pref is not set. > >We are enabling the auto complete even if PatronAutoComplete if off. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >index a2ba59bf31e..f1745d52e81 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >@@ -69,12 +69,14 @@ > </script> > [% END %] > >-[% IF ( PatronAutoComplete ) %] >- <script> >- // PatronAutoComplete >+<script> > var defaultPatronSearchFields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,middle_name,surname,othernames,cardnumber,userid' | html %]"; > var loggedInLibrary = '[% Branches.GetLoggedInBranchcode | html %]'; > var singleBranchMode = '[% singleBranchMode | html %]'; >+</script> >+[% IF ( PatronAutoComplete ) %] >+ <script> >+ // PatronAutoComplete > var loggedInClass = ""; > $(document).ready(function(){ > [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] >-- >2.25.1
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 33829
:
151676
|
151687
|
151692