mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-03 04:55:36 +02:00
[ticket/12759] Fix type_bool and type_dropdown's UCP fields
PHPBB3-12759
This commit is contained in:
parent
98262a5a17
commit
6d464e0bc4
@ -203,7 +203,14 @@ class type_bool extends type_base
|
||||
{
|
||||
if (!$this->lang_helper->is_set($profile_row['field_id'], $profile_row['lang_id'], 1))
|
||||
{
|
||||
$this->lang_helper->load_preview_options($profile_row['field_id'], $profile_row['lang_id'], $preview_options);
|
||||
if ($preview_options)
|
||||
{
|
||||
$this->lang_helper->load_preview_options($profile_row['field_id'], $profile_row['lang_id'], $preview_options);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->lang_helper->load_option_lang($profile_row['lang_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$options = $this->lang_helper->get($profile_row['field_id'], $profile_row['lang_id']);
|
||||
|
@ -199,7 +199,14 @@ class type_dropdown extends type_base
|
||||
|
||||
if (!$this->lang_helper->is_set($profile_row['field_id'], $profile_row['lang_id'], 1))
|
||||
{
|
||||
$this->lang_helper->load_preview_options($profile_row['field_id'], $profile_row['lang_id'], $preview_options);
|
||||
if ($preview_options)
|
||||
{
|
||||
$this->lang_helper->load_preview_options($profile_row['field_id'], $profile_row['lang_id'], $preview_options);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->lang_helper->load_option_lang($profile_row['lang_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$profile_row['field_value'] = (int) $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user