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

SF.net SVN: ledger-smb:[2798] trunk/LedgerSMB/Form.pm



Revision: 2798
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2798&view=rev
Author:   einhverfr
Date:     2009-11-13 19:15:36 +0000 (Fri, 13 Nov 2009)

Log Message:
-----------
Undoing erroneous bugfix

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

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2009-11-12 23:33:01 UTC (rev 2797)
+++ trunk/LedgerSMB/Form.pm	2009-11-13 19:15:36 UTC (rev 2798)
@@ -1820,7 +1820,7 @@
 
         $sth->finish;
 
-    } elsif ($self->{"${vc}_id"}) {
+    } elsif ($self->{id}) {
         $query = qq|
 		SELECT ec.id, e.name
 		  FROM entity e
@@ -1829,7 +1829,7 @@
 				WHERE id = ?)
 		ORDER BY name|;
         $sth = $self->{dbh}->prepare($query);
-        $sth->execute($self->{"${vc}_id"});
+        $sth->execute($self->{id});
         ($self->{"${vc}_id"}, $self->{$vc}) = $sth->fetchrow_array();
     }
     # get self


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