Lines 2316-2325
sub _koha_modify_item {
Link Here
|
2316 |
$query =~ s/,$//; |
2316 |
$query =~ s/,$//; |
2317 |
$query .= " WHERE itemnumber=?"; |
2317 |
$query .= " WHERE itemnumber=?"; |
2318 |
push @bind, $item->{'itemnumber'}; |
2318 |
push @bind, $item->{'itemnumber'}; |
2319 |
my $sth = C4::Context->dbh->prepare($query); |
2319 |
my $sth = $dbh->prepare($query); |
2320 |
$sth->execute(@bind); |
2320 |
$sth->execute(@bind); |
2321 |
if ( C4::Context->dbh->errstr ) { |
2321 |
if ( $sth->err ) { |
2322 |
$error.="ERROR in _koha_modify_item $query".$dbh->errstr; |
2322 |
$error.="ERROR in _koha_modify_item $query: ".$sth->errstr; |
2323 |
warn $error; |
2323 |
warn $error; |
2324 |
} |
2324 |
} |
2325 |
return ($item->{'itemnumber'},$error); |
2325 |
return ($item->{'itemnumber'},$error); |
2326 |
- |
|
|