Skip to content

Commit

Permalink
Bug 34478: Manual fix - add op - rotating_collections/addItems
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Druart <[email protected]>
  • Loading branch information
ricofreak authored and joubu committed Mar 1, 2024
1 parent 1c91e91 commit 5c25dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
6 changes: 3 additions & 3 deletions rotating_collections/addItems.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
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",
Expand All @@ -38,8 +38,8 @@
}
);

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');
Expand Down

0 comments on commit 5c25dd0

Please sign in to comment.