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>
This commit is contained in:
parent
2029b7ef8b
commit
6aa9f78258
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue