Bug 34478: Changes for virtualshelves/addbybiblionumber
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
700ff3508b
commit
e9a4bf0106
|
|
@ -116,6 +116,7 @@
|
|||
<nav class="navbar navbar-default navbar-fixed-bottom">
|
||||
<div class="container-fluid">
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="cud-add" />
|
||||
<input type="submit" class="btn btn-primary" value="Save" />
|
||||
<button class="btn btn-default close_window">Cancel</button>
|
||||
</fieldset>
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ use Koha::Biblios;
|
|||
use Koha::Virtualshelves;
|
||||
|
||||
my $query = CGI->new;
|
||||
my $op = $query->param('op') // q{};
|
||||
my $shelfnumber = $query->param('shelfnumber');
|
||||
my $newvirtualshelf = $query->param('newvirtualshelf');
|
||||
my $newshelf = $query->param('newshelf');
|
||||
|
|
@ -90,7 +91,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
if ($newvirtualshelf) {
|
||||
if ( $op && $op !~ /^cud-/ ) {
|
||||
$authorized = 0;
|
||||
} elsif ($newvirtualshelf) {
|
||||
my $shelf = eval {
|
||||
Koha::Virtualshelf->new(
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue