fixed reference to branchrelations.categorycode

Previous patch had referred to column as category_id,
which is incorrect.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2007-12-17 12:42:03 -06:00 committed by Joshua Ferraro
parent f8f8a3c7bf
commit 80942a3031
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ sub GetBranches {
while ( my $branch = $sth->fetchrow_hashref ) {
my $nsth =
$dbh->prepare(
"SELECT category_id FROM branchrelations WHERE branchcode = ?");
"SELECT categorycode FROM branchrelations WHERE branchcode = ?");
$nsth->execute( $branch->{'branchcode'} );
while ( my ($cat) = $nsth->fetchrow_array ) {