From badeac698c7615409e028c0b44642cb17f75c0b1 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> Date: Tue, 11 Apr 2006 13:02:04 +0000 Subject: [PATCH] #58239, required profile list not required, patch by Dries K --- modules/profile.module | 4 +++- modules/profile/profile.module | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/profile.module b/modules/profile.module index 48c8e1aa991b..64814694e0a6 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -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)) { diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 48c8e1aa991b..64814694e0a6 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -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)) { -- GitLab