Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
sub DelItem {
my ( $dbh, $biblionumber, $itemnumber ) = @_;
- my $dbh = C4::Context->dbh;
# check the item has no current issues
cn_sort = ?,
totalissues = ?
";
- my $sth = $dbh->prepare($query);
+ $sth = $dbh->prepare($query);
$sth->execute(
$bibitemnum,
$biblioitem->{'biblionumber'},
materials = ?,
uri = ?
";
- my $sth = $dbh->prepare($query);
+ $sth = $dbh->prepare($query);
$sth->execute(
$itemnumber,
$item->{'biblionumber'},