Commit badeac69 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#58239, required profile list not required, patch by Dries K

parent 70aae83c
......@@ -660,7 +660,9 @@ function profile_form_profile($edit, $user, $category) {
);
break;
case 'selection':
$options = array('--');
if (!$field->required) {
$options = array('--');
}
$lines = split("[,\n\r]", $field->options);
foreach ($lines as $line) {
if ($line = trim($line)) {
......
......@@ -660,7 +660,9 @@ function profile_form_profile($edit, $user, $category) {
);
break;
case 'selection':
$options = array('--');
if (!$field->required) {
$options = array('--');
}
$lines = split("[,\n\r]", $field->options);
foreach ($lines as $line) {
if ($line = trim($line)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment