Fix default country from preferences, use country code

This commit is contained in:
Nathan Gray 2011-03-07 17:25:54 +00:00
parent dd8a8eab45
commit 97523a99f3

View File

@ -52,6 +52,7 @@ class addressbook_ui extends addressbook_bo
'adr_one_region',
'adr_one_postalcode',
'adr_one_countryname',
'adr_one_countrycode',
'email',
'url',
'tel_work',
@ -1395,8 +1396,8 @@ class addressbook_ui extends addressbook_bo
{
if ($GLOBALS['egw_info']['user']['preferences']['common']['country'])
{
$content['adr_one_countryname'] =
$GLOBALS['egw']->country->get_full_name($GLOBALS['egw_info']['user']['preferences']['common']['country']);
$content['adr_one_countrycode'] =
$GLOBALS['egw_info']['user']['preferences']['common']['country'];
}
if ($this->prefs['fileas_default']) $content['fileas_type'] = $this->prefs['fileas_default'];
}