The first patch add a bad indentation for this routine. This patch fixes
that.
Also, the $sth->finish statement is useless and was removed.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
sub delete_report {
my (@ids) = @_;
- my $dbh = C4::Context->dbh;
- my $query = 'DELETE FROM saved_sql WHERE id IN (' . join( ',', ('?') x @ids ) . ')';
- my $sth = $dbh->prepare($query);
- $sth->execute(@ids);
- $sth->finish;
+ my $dbh = C4::Context->dbh;
+ my $query = 'DELETE FROM saved_sql WHERE id IN (' . join( ',', ('?') x @ids ) . ')';
+ my $sth = $dbh->prepare($query);
+ $sth->execute(@ids);
}
my $SAVED_REPORTS_BASE_QRY = <<EOQ;