Permalink
Browse files

[ticket/9084] Explain the logic.

PHPBB3-9084
  • Loading branch information...
p committed Mar 9, 2012
1 parent 345e8e0 commit cd61de4bfdd1818d173e7413e53d8fd3d7ce1913
Showing with 5 additions and 0 deletions.
  1. +5 −0 phpBB/includes/functions_profile_fields.php
@@ -571,6 +571,11 @@ function get_profile_value($ident_ary)
$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'])
{
return NULL;

0 comments on commit cd61de4

Please sign in to comment.