From 24998f2b6827a54e4febd6b757379a75c1496cc8 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Thu, 22 Feb 2007 22:04:30 +0000 Subject: Fixing bug 1666529 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@825 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index caa9857b..601b74c1 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -2209,6 +2209,7 @@ sub lastname_used { my ($self, $myconfig, $dbh2, $vc, $module) = @_; + $vc ||= $self->{vc}; my $dbh = $self->{dbh}; my $arap = ($vc eq 'customer') ? "ar" : "ap"; -- cgit v1.2.3