Bug 34478: Manual fix - add op - request.tt placerequest

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2024-01-31 11:45:40 -05:00 committed by Jonathan Druart
parent 95c87290e5
commit 53991f88b0
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 1 deletions

View file

@ -494,6 +494,7 @@
<form action="placerequest.pl" method="post" name="form" id="hold-request-form">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-placerequest" />
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
[% FOREACH biblionumber IN biblionumbers %]
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/>

View file

@ -49,6 +49,7 @@ my $item_group_id = $input->param('item_group_id');
my $expirationdate = $input->param('expiration_date');
my $itemtype = $input->param('itemtype') || undef;
my $non_priority = $input->param('non_priority');
my $op = $input->param('op') || q{};
my $patron = Koha::Patrons->find( $borrowernumber );
@ -65,7 +66,7 @@ foreach my $bibnum ( @holdable_bibs ) {
my $found;
if ( $patron ) {
if ( $op eq 'cud-placerequest' && $patron ) {
foreach my $biblionumber ( keys %bibinfos ) {