Bug 34478: Manual fix - add op - rotating_collections/addItems

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Lucas Gass 2024-02-01 21:18:25 +00:00 committed by Jonathan Druart
parent 1c91e91e08
commit 5c25dd0eec
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 4 additions and 4 deletions

View file

@ -108,7 +108,7 @@
</fieldset>
<fieldset class="action">
<input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
<input type="hidden" name="action" value="addItem" />
<input type="hidden" name="op" value="cud-add" />
<input type="submit" class="btn btn-primary" value="Submit" />
</fieldset>

View file

@ -28,7 +28,7 @@ use Koha::Items;
use CGI qw ( -utf8 );
my $query = CGI->new;
my $op = $query->param('op') || q{};
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "rotating_collections/addItems.tt",
@ -38,8 +38,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
if ( defined $query->param('action') and
$query->param('action') eq 'addItem' ) {
if ( defined $op and
$op eq 'cud-add' ) {
## Add the given item to the collection
my $colId = $query->param('colId');
my $barcode = $query->param('barcode');