fixes SQL typo and return value in GetImportBatchStatus()

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Mason James 2009-02-03 01:33:21 +13:00 committed by Henri-Damien LAURENT
parent 0e0edd116a
commit f34a92faee
1 changed files with 2 additions and 3 deletions

View File

@ -871,15 +871,14 @@ sub GetImportBatchStatus {
my ($batch_id) = @_;
my $dbh = C4::Context->dbh;
my $sth = $dbh->prepare("SELECT import_status FROM import_batches WHERE batch_id = ?");
my $sth = $dbh->prepare("SELECT import_status FROM import_batches WHERE import_batch_id = ?");
$sth->execute($batch_id);
my ($status) = $sth->fetchrow_array();
$sth->finish();
return;
return $status;
}
=head2 SetImportBatchStatus
=over 4