Bugzilla – Attachment 131340 Details for
Bug 30220
Purchase suggestion defaults to first library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30220: Purchase suggestion defaults to first library
Bug-30220-Purchase-suggestion-defaults-to-first-li.patch (text/plain), 2.53 KB, created by
Owen Leonard
on 2022-03-03 17:02:41 UTC
(
hide
)
Description:
Bug 30220: Purchase suggestion defaults to first library
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-03-03 17:02:41 UTC
Size:
2.53 KB
patch
obsolete
>From 5502d0268b89da72afba437dfe2ee30bc48a9e21 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 3 Mar 2022 16:45:43 +0000 >Subject: [PATCH] Bug 30220: Purchase suggestion defaults to first library > >This patch updates the OPAC suggestions form to update the variable >used to pre-select the logged-in user's library. > >To test, apply the patch and make sure the "suggestion" preference is >set to "Allow." > >- Log in to the OPAC and click "your purchase suggestions" in the > sidebar menu on your summary page. >- Click "New purchase suggestion." >- The selected library should match the logged-in user's home library. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >index 89e1175c3f..7bee65b938 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >@@ -188,13 +188,13 @@ > [% IF ( branchcode_required ) %] > <label for="branch" class="required">Library:</label> > <select name="branchcode" id="branch" required="required"> >- [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] >+ [% PROCESS options_for_libraries libraries => Branches.all( selected => logged_in_user.branchcode ) %] > </select> > <div class="required_label required">Required</div> > [% ELSE %] > <label for="branch">Library:</label> > <select name="branchcode" id="branch"> >- [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] >+ [% PROCESS options_for_libraries libraries => Branches.all( selected => logged_in_user.branchcode ) %] > </select> > [% END %] > </li> >-- >2.20.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 30220
:
131340
|
131341
|
131414