mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9084] Explain the logic.
PHPBB3-9084
This commit is contained in:
parent
345e8e084f
commit
cd61de4bfd
1 changed files with 5 additions and 0 deletions
|
@ -571,6 +571,11 @@ class custom_profile
|
||||||
$this->get_option_lang($field_id, $lang_id, FIELD_DROPDOWN, false);
|
$this->get_option_lang($field_id, $lang_id, FIELD_DROPDOWN, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If a dropdown field is required, users
|
||||||
|
// cannot choose the "no value" option.
|
||||||
|
// They must choose one of the other options.
|
||||||
|
// Therefore, here we treat a value equal to
|
||||||
|
// the "no value" as a lack of value, i.e. NULL.
|
||||||
if ($value == $ident_ary['data']['field_novalue'] && $ident_ary['data']['field_required'])
|
if ($value == $ident_ary['data']['field_novalue'] && $ident_ary['data']['field_required'])
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue