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

4.7.x
Gerhard Killesreiter 2006-04-11 13:02:04 +00:00
parent 70aae83c8e
commit badeac698c
2 changed files with 6 additions and 2 deletions

View File

@ -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)) {

View File

@ -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)) {