CRM-15854 - Fix crash on review form
authorTim Otten <totten@civicrm.org>
Sat, 28 Feb 2015 00:18:27 +0000 (17:18 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 2 Mar 2015 23:59:43 +0000 (15:59 -0800)
CRM/Core/Form.php
CRM/Mailing/Form/Approve.php

index f3e16c33c251afdf3dfcf26435cb1c4c9cedc8e2..1bf6a2f24d6c2159027b5f6b877f46ebc75cbb62 100644 (file)
@@ -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);
     }
index 8771bb0ef64e48b682388622c58f4e4c1aa3848b..684cee77dc628d6934217d64cd405d039c98f2f2 100644 (file)
@@ -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(