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:
parent
1c91e91e08
commit
5c25dd0eec
2 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue