----------------------------------------
* CRM-5039: Events don't always limit registrations to "max participants" setting
https://issues.civicrm.org/jira/browse/CRM-5039
$value = $element->getValue();
if (in_array($value[0], $optIds)) {
foreach ($element->_options as $option) {
- if ($option['attr']['value'] === "crm_disabled_opt-{$element->getValue()[0]}") {
+ if ($option['attr']['value'] === "crm_disabled_opt-{$value[0]}") {
$placeholder = html_entity_decode($option['text']);
$element->updateAttributes(array('placeholder' => $placeholder));
break;
$params['payment_action'] = 'Sale';
$params['invoiceID'] = $invoiceID;
}
-
- if (!empty($this->get('params')) && is_array($this->get('params'))) {
- $this->_params = $this->get('params');
+ $this->_params = $this->get('params');
+ if (!empty($this->_params) && is_array($this->_params)) {
$this->_params[0] = $params;
}
else {