Swap out button/submit inputs for button elements
[civicrm-core.git] / CRM / Contact / Form / Search.php
index 25c95ac6b7ebbb541e47d2d629604db82fad4673..af5e9f8213108387eaf0a4e58bc3e3ce3e09e2b9 100644 (file)
@@ -469,8 +469,9 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
       // also set the group title and freeze the action task with Add Members to Group
       $groupValues = ['id' => $this->_amtgID, 'title' => $this->_group[$this->_amtgID]];
       $this->assign_by_ref('group', $groupValues);
-      $this->add('submit', $this->_actionButtonName, ts('Add Contacts to %1', [1 => $this->_group[$this->_amtgID]]),
+      $this->add('xbutton', $this->_actionButtonName, ts('Add Contacts to %1', [1 => $this->_group[$this->_amtgID]]),
         [
+          'type' => 'submit',
           'class' => 'crm-form-submit',
         ]
       );