fixes SQL typo and return value in GetImportBatchStatus()
authorMason James <mason.loves.sushi@gmail.com>
Mon, 2 Feb 2009 12:33:21 +0000 (01:33 +1300)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 2 Feb 2009 14:20:57 +0000 (08:20 -0600)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/ImportBatch.pm

index f978d04..03ef819 100644 (file)
@@ -869,15 +869,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