summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2008-02-27 21:52:07 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2008-02-27 21:52:07 +0000
commit4f8e4bccbf68d52f271043f51178df42ba9e7ed1 (patch)
tree33db277c9ec5d4bfcbb3ab720e1de538b979df40 /LedgerSMB/DBObject
parent15ebe1a6d5c5df967745787749d23d2ff1f367fe (diff)
Minor modification to the Company.pm, so companies are properly saved from the vendor screen
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2094 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/DBObject')
-rw-r--r--LedgerSMB/DBObject/Company.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/DBObject/Company.pm b/LedgerSMB/DBObject/Company.pm
index 9b122b4d..b2584aa0 100644
--- a/LedgerSMB/DBObject/Company.pm
+++ b/LedgerSMB/DBObject/Company.pm
@@ -69,7 +69,7 @@ This method saves an address for a company.
sub save_location {
my $self = shift @_;
- $self->{country_id} = $self->{country};
+ $self->{country_id} = $self->{country_code};
$self->exec_method(funcname => 'company__location_save');
$self->{dbh}->commit;