diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index f978d049d3..03ef8197fa 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -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