[Koha-patches] [PATCH] fixes SQL typo and return value in GetImportBatchStatus()
Mason James
mason.loves.sushi at gmail.com
Mon Feb 2 13:33:21 CET 2009
---
C4/ImportBatch.pm | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm
index f978d04..03ef819 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
--
1.5.6.5
More information about the Koha-patches
mailing list