[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5724] trunk/LedgerSMB/Scripts/configuration.pm
- Subject: SF.net SVN: ledger-smb:[5724] trunk/LedgerSMB/Scripts/configuration.pm
- From: ..hidden..
- Date: Sun, 28 Apr 2013 15:30:10 +0000
Revision: 5724
http://sourceforge.net/p/ledger-smb/code/5724
Author: ehuelsmann
Date: 2013-04-28 15:30:08 +0000 (Sun, 28 Apr 2013)
Log Message:
-----------
In the system defaults screen, don't accidentally set the default
country and language, if they were not set (by allowing the value
to remain empty).
Modified Paths:
--------------
trunk/LedgerSMB/Scripts/configuration.pm
Modified: trunk/LedgerSMB/Scripts/configuration.pm
===================================================================
--- trunk/LedgerSMB/Scripts/configuration.pm 2013-04-28 15:10:46 UTC (rev 5723)
+++ trunk/LedgerSMB/Scripts/configuration.pm 2013-04-28 15:30:08 UTC (rev 5724)
@@ -134,8 +134,13 @@
my @country_list = $request->call_procedure(
procname => 'location_list_country'
);
+ unshift @country_list, {}
+ if ! defined $request->{default_country};
+
my @language_code_list =
$request->call_procedure(procname=> 'person__list_languages');
+ unshift @language_code_list, {}
+ if ! defined $request->{default_language};
my %selects = (
'fxloss_accno_id' => {name => 'fxloss_accno_id',
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.