Commit f60fbf71 authored by drumm's avatar drumm

#323386 by mariuss: The selection type in profile module expects items each on...

#323386 by mariuss: The selection type in profile module expects items each on their own line and should not break items on commas
parent 7d15d9e6
......@@ -678,7 +678,7 @@ function profile_form_profile($edit, $user, $category, $register = FALSE) {
break;
case 'selection':
$options = $field->required ? array() : array('--');
$lines = split("[,\n\r]", $field->options);
$lines = split("[\n\r]", $field->options);
foreach ($lines as $line) {
if ($line = trim($line)) {
$options[$line] = $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