summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-02-22 22:04:30 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-02-22 22:04:30 +0000
commit24998f2b6827a54e4febd6b757379a75c1496cc8 (patch)
tree6b0c36a25a10e9e1c1ec261aff67d17b955c0d12
parent0af6762dd56c224cc0e3ff4a295a8eba9c53c503 (diff)
Fixing bug 1666529
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@825 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm1
1 files changed, 1 insertions, 0 deletions
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";