summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-24 20:39:17 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-24 20:39:17 +0000
commit8520340cca7a0056a61b55975dc8ea77a934c81c (patch)
treec56097bc1fdc5c2cca2223e952b2fafa635eebb6
parent9e22b9d3585dd5607985243b7085ce077100832d (diff)
Fix for 1758251 and a similar gifi report issue
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1438 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/GL.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm
index 03b6d678..d4e5e838 100755
--- a/LedgerSMB/GL.pm
+++ b/LedgerSMB/GL.pm
@@ -313,14 +313,14 @@ sub all_transactions {
}
if ( $form->{gifi_accno} ) {
- $var = $dbh->quote( $form->{gifiaccno} );
+ $var = $dbh->quote( $form->{gifi_accno} );
$glwhere .= " AND c.gifi_accno = $var";
$arwhere .= " AND c.gifi_accno = $var";
$apwhere .= " AND c.gifi_accno = $var";
}
if ( $form->{category} ne 'X' ) {
- $var = $dbh->quote( $form->{gifiaccno} );
+ $var = $dbh->quote( $form->{category} );
$glwhere .= " AND c.category = $var";
$arwhere .= " AND c.category = $var";
$apwhere .= " AND c.category = $var";