From 1d27147135319b658e2d78963edf0a918667043f Mon Sep 17 00:00:00 2001 From: einhverfr Date: Thu, 22 Feb 2007 22:03:45 +0000 Subject: Fixing bug 1666529 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@824 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 8c9cd548..e1faa621 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -2216,7 +2216,7 @@ sub lastname_used { 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; -- cgit v1.2.3