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

SF.net SVN: ledger-smb:[2268] trunk/LedgerSMB/AA.pm



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

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

Modified Paths:
--------------
    trunk/LedgerSMB/AA.pm

Modified: trunk/LedgerSMB/AA.pm
===================================================================
--- trunk/LedgerSMB/AA.pm	2008-08-15 00:46:28 UTC (rev 2267)
+++ trunk/LedgerSMB/AA.pm	2008-08-15 00:48:06 UTC (rev 2268)
@@ -952,8 +952,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.