}
}
}
+ else if ($this->userGroupOption->optionType == 'BBCodeSelect') {
+ foreach ($this->groups as $groupID => $group) {
+ if (!isset($this->values[$groupID])) {
+ $this->values[$groupID] = '';
+ }
+ }
+ }
if (!empty($this->errorType)) {
throw new UserInputException('optionValues', $this->errorType);
$groupValue = explode(',', StringUtil::unifyNewlines($groupValue));
}
- $newValue = array_unique(array_merge($defaultValue, $groupValue));
+ $newValue = array_intersect($defaultValue, $groupValue);
sort($newValue);
return implode(',', $newValue);