Bugzilla – Attachment 122133 Details for
Bug 28597
OPAC suggestions do not display news for logged in branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28597: Fetch the logged in branchcode for OpacSuggestioninstructions
Bug-28597-Fetch-the-logged-in-branchcode-for-OpacS.patch (text/plain), 1.67 KB, created by
Nick Clemens (kidclamp)
on 2021-06-18 13:12:25 UTC
(
hide
)
Description:
Bug 28597: Fetch the logged in branchcode for OpacSuggestioninstructions
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-06-18 13:12:25 UTC
Size:
1.67 KB
patch
obsolete
>From 1c0f537150295a159350177fcc3a04ff5c69c2b1 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 18 Jun 2021 13:09:29 +0000 >Subject: [PATCH] Bug 28597: Fetch the logged in branchcode for > OpacSuggestioninstructions > >To test: > 1 - Set two news items with location 'OpacSuggestioninstructions' > 2 - One should be for all libraries > 3 - One should be for a specific library > 4 - Sign in to opac with user from the specific library > 5 - Add a suggestion > 6 - The instructions only show the all libraries item > 7 - Apply patch > 8 - Reload > 9 - All libraries and specific library items are shown >10 - Allow anonymous suggestions: AnonSuggestions - Allow >11 - Sign out of opac >12 - Add a suggestion >13 - Only all librares news is visible >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 da0f03ceb9..55883b4b34 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >@@ -5,7 +5,7 @@ > [% USE AuthorisedValues %] > [% USE KohaDates %] > [% USE KohaNews %] >-[% SET opacsuggestion = KohaNews.get( location => "OpacSuggestioninstructions", lang => lang, library => branchcode ) %] >+[% SET opacsuggestion = KohaNews.get( location => "OpacSuggestioninstructions", lang => lang, library => Branches.GetLoggedInBranchcode ) %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( op_add ) %]Enter a new purchase suggestion[% END %] > [% IF ( op_else ) %]Purchase Suggestions[% END %] › >-- >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 28597
:
122133
|
122178
|
122548