From 385f11fd1670ae04f051352486e1cae0044fb97e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 27 Feb 2015 17:18:27 -0700 Subject: [PATCH] CRM-15854 - Fix crash on review form --- CRM/Core/Form.php | 2 +- CRM/Mailing/Form/Approve.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index f3e16c33c2..1bf6a2f24d 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -881,7 +881,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $attributes = $attributes ? $attributes : array(); $allowClear = !empty($attributes['allowClear']); unset($attributes['allowClear']); - $attributes += array('id_suffix' => $name); + $attributes['id_suffix'] = $name; foreach ($values as $key => $var) { $options[] = $this->createElement('radio', NULL, NULL, $var, $key, $attributes); } diff --git a/CRM/Mailing/Form/Approve.php b/CRM/Mailing/Form/Approve.php index 8771bb0ef6..684cee77dc 100644 --- a/CRM/Mailing/Form/Approve.php +++ b/CRM/Mailing/Form/Approve.php @@ -119,7 +119,7 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form { unset($mailApprovalStatus[$noneOptionID]); } - $this->addRadio('approval_status_id', ts('Approval Status'), $mailApprovalStatus, TRUE, NULL, TRUE); + $this->addRadio('approval_status_id', ts('Approval Status'), $mailApprovalStatus, array(), NULL, TRUE); $buttons = array( array( -- 2.25.1