Bugzilla – Attachment 114834 Details for
Bug 27332
When renewing a serial subscription, show note and library only if RenewSerialAddsSuggestion is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27332: Use the branchcode from the subscription when renewing
Bug-27332-Use-the-branchcode-from-the-subscription.patch (text/plain), 1.83 KB, created by
Jonathan Druart
on 2021-01-05 07:11:09 UTC
(
hide
)
Description:
Bug 27332: Use the branchcode from the subscription when renewing
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-01-05 07:11:09 UTC
Size:
1.83 KB
patch
obsolete
>From fd2398450b4668eea81aef381b842ecf14a28992 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 5 Jan 2021 08:10:33 +0100 >Subject: [PATCH] Bug 27332: Use the branchcode from the subscription when > renewing > >--- > .../prog/en/modules/serials/subscription-renew.tt | 5 ++--- > serials/subscription-renew.pl | 3 --- > 2 files changed, 2 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt >index 4848538539..25402cf90d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt >@@ -1,3 +1,4 @@ >+[% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > [% IF subscription %] >@@ -64,9 +65,7 @@ > <option value="">None</option> > [% END %] > [% IF CAN_user_serials_superserials %] >- [% FOREACH library IN libraries %] >- <option value="[% library.branchcode | html %]"> [% library.branchname | html %] </option> >- [% END %] >+ [% PROCESS options_for_libraries libraries => Branches.all(selected => subscription.branchcode) %] > [% END %] > </select> (select a library) > </li> >diff --git a/serials/subscription-renew.pl b/serials/subscription-renew.pl >index 94f0f506ba..80727da866 100755 >--- a/serials/subscription-renew.pl >+++ b/serials/subscription-renew.pl >@@ -129,11 +129,8 @@ if ( $op eq "renew" ) { > ); > } > >-my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); >- > $template->param( > op => $op, >- libraries => $libraries, > ); > > output_html_with_http_headers $query, $cookie, $template->output; >-- >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 27332
:
114834
|
114854
|
116479
|
116480
|
116481
|
117167
|
117168