summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/GL.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm
index 26f4021f..463ca556 100644
--- a/LedgerSMB/GL.pm
+++ b/LedgerSMB/GL.pm
@@ -329,14 +329,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";