Bug 7663: Fix bad merge conflict with bug 15584
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
c3f6f26c35
commit
3f6f4a2b36
1 changed files with 3 additions and 3 deletions
|
@ -151,18 +151,18 @@ if ( $op eq 'add_form' ) {
|
|||
my $biblio = GetBiblioFromItemNumber( $item->{itemnumber} );
|
||||
my $added = eval { $shelf->add_biblio( $biblio->{biblionumber}, $loggedinuser ); };
|
||||
if ($@) {
|
||||
push @messages, { item_barcode => $barcode, type => 'error', code => ref($@), msg => $@ };
|
||||
push @messages, { item_barcode => $barcode, type => 'alert', code => ref($@), msg => $@ };
|
||||
} elsif ( $added ) {
|
||||
push @messages, { item_barcode => $barcode, type => 'message', code => 'success_on_add_biblio' };
|
||||
} else {
|
||||
push @messages, { item_barcode => $barcode, type => 'message', code => 'error_on_add_biblio' };
|
||||
}
|
||||
} else {
|
||||
push @messages, { item_barcode => $barcode, type => 'error', code => 'item_does_not_exist' };
|
||||
push @messages, { item_barcode => $barcode, type => 'alert', code => 'item_does_not_exist' };
|
||||
}
|
||||
}
|
||||
} else {
|
||||
push @messages, { type => 'error', code => 'unauthorized_on_add_biblio' };
|
||||
push @messages, { type => 'alert', code => 'unauthorized_on_add_biblio' };
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue