Browse Source

Bug 27332: Use the branchcode from the subscription when renewing

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
master
Jonathan Druart 1 month ago
parent
commit
6aa9f78258
2 changed files with 2 additions and 6 deletions
  1. +2
    -3
      koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt
  2. +0
    -3
      serials/subscription-renew.pl

+ 2
- 3
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt View File

@@ -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>


+ 0
- 3
serials/subscription-renew.pl View File

@@ -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;

Loading…
Cancel
Save