As the visibility per option field is not mandatory, the user can choose the
empty option and save the field. This caused some PHP warnings to be issued on
event registration forms that used the field with empty visibility options.
Removed the empty option from the visibility per option select.
// is active ?
$this->add('checkbox', 'option_status[' . $i . ']', ts('Active?'));
- $this->add('select', 'option_visibility_id[' . $i . ']', ts('Visibility'), array('' => ts('- select -')) + $visibilityType);
+ $this->add('select', 'option_visibility_id[' . $i . ']', ts('Visibility'), $visibilityType);
$defaultOption[$i] = $this->createElement('radio', NULL, NULL, NULL, $i);
//for checkbox handling of default option