#58239, required profile list not required, patch by Dries K
parent
70aae83c8e
commit
badeac698c
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue