From f34a92faee71db6426537f4a7c65a11adb9335eb Mon Sep 17 00:00:00 2001 From: Mason James Date: Tue, 3 Feb 2009 01:33:21 +1300 Subject: [PATCH] fixes SQL typo and return value in GetImportBatchStatus() Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- C4/ImportBatch.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index fe81f71d46..9ceb15a4a6 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -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 -- 2.39.5