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

SF.net SVN: ledger-smb: [824] branches/1.2/LedgerSMB/Form.pm



Revision: 824
          http://svn.sourceforge.net/ledger-smb/?rev=824&view=rev
Author:   einhverfr
Date:     2007-02-22 14:03:45 -0800 (Thu, 22 Feb 2007)

Log Message:
-----------
Fixing bug 1666529

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

Modified: branches/1.2/LedgerSMB/Form.pm
===================================================================
--- branches/1.2/LedgerSMB/Form.pm	2007-02-22 21:51:57 UTC (rev 823)
+++ branches/1.2/LedgerSMB/Form.pm	2007-02-22 22:03:45 UTC (rev 824)
@@ -2216,7 +2216,7 @@
 	my ($self, $myconfig, $dbh2, $vc, $module) = @_;
 
 	my $dbh = $self->{dbh};
-
+	$vc ||= $form->{vc}; # add default to correct for improper passing
 	my $arap = ($vc eq 'customer') ? "ar" : "ap";
 	my $where = "1 = 1";
 	my $sth;


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