Lines 669-675
if ($op eq "additem") {
Link Here
|
669 |
#------------------------------------------------------------------------------- |
669 |
#------------------------------------------------------------------------------- |
670 |
# check that there is no issue on this item before deletion. |
670 |
# check that there is no issue on this item before deletion. |
671 |
my $item = Koha::Items->find($itemnumber); |
671 |
my $item = Koha::Items->find($itemnumber); |
672 |
$error = $item->safe_to_delete; |
672 |
$error = $item->safe_delete; |
673 |
if($error ne '1'){ |
673 |
if($error ne '1'){ |
674 |
print $input->redirect("additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode&searchid=$searchid"); |
674 |
print $input->redirect("additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode&searchid=$searchid"); |
675 |
}else{ |
675 |
}else{ |
676 |
- |
|
|