[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2267] branches/1.2/LedgerSMB/AA.pm



Revision: 2267
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2267&view=rev
Author:   einhverfr
Date:     2008-08-15 00:46:28 +0000 (Fri, 15 Aug 2008)

Log Message:
-----------
rethinking Jeffk's till patch

Modified Paths:
--------------
    branches/1.2/LedgerSMB/AA.pm

Modified: branches/1.2/LedgerSMB/AA.pm
===================================================================
--- branches/1.2/LedgerSMB/AA.pm	2008-08-15 00:28:44 UTC (rev 2266)
+++ branches/1.2/LedgerSMB/AA.pm	2008-08-15 00:46:28 UTC (rev 2267)
@@ -839,8 +839,9 @@
     }
 
     if ( $form->{till} ne "" ) {
+	$form->{till} = $dbh->quote($form->{till});
         $where .= " AND a.invoice = '1'
-					AND a.till = '$form->{till}'";
+					AND a.till = $form->{till}";
 
         if ( $myconfig->{role} eq 'user' ) {
             my $login = $dbh->quote( $form->{login} );


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.