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

SF.net SVN: ledger-smb: [1544] trunk/LedgerSMB/CP.pm



Revision: 1544
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1544&view=rev
Author:   einhverfr
Date:     2007-09-07 22:11:46 -0700 (Fri, 07 Sep 2007)

Log Message:
-----------
Trying to fix another query error

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

Modified: trunk/LedgerSMB/CP.pm
===================================================================
--- trunk/LedgerSMB/CP.pm	2007-09-08 05:08:10 UTC (rev 1543)
+++ trunk/LedgerSMB/CP.pm	2007-09-08 05:11:46 UTC (rev 1544)
@@ -193,7 +193,7 @@
         # Leaving it so we can change it when we go to a new system
         $query = qq|SELECT curr 
 					  FROM $form->{vc}
-					 WHERE id = $form->{name_list}->[0]->{id}|;
+					 WHERE entity_id = $form->{name_list}->[0]->{entity_id}|;
 
         ( $form->{currency} ) = $dbh->selectrow_array($query);
         $form->{currency} ||= $form->{defaultcurrency};


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