#58568: Multiple profile selection boxes repeat items
parent
027f9836bc
commit
506c80bdb9
|
@ -660,9 +660,7 @@ function profile_form_profile($edit, $user, $category) {
|
|||
);
|
||||
break;
|
||||
case 'selection':
|
||||
if (!$field->required) {
|
||||
$options = array('--');
|
||||
}
|
||||
$options = $field->required ? array() : array('--');
|
||||
$lines = split("[,\n\r]", $field->options);
|
||||
foreach ($lines as $line) {
|
||||
if ($line = trim($line)) {
|
||||
|
|
|
@ -660,9 +660,7 @@ function profile_form_profile($edit, $user, $category) {
|
|||
);
|
||||
break;
|
||||
case 'selection':
|
||||
if (!$field->required) {
|
||||
$options = array('--');
|
||||
}
|
||||
$options = $field->required ? array() : array('--');
|
||||
$lines = split("[,\n\r]", $field->options);
|
||||
foreach ($lines as $line) {
|
||||
if ($line = trim($line)) {
|
||||
|
|
Loading…
Reference in New Issue