CRM-15108 fix - "Add to group" fails
authormonishdeb <monish.deb@webaccessglobal.com>
Thu, 14 Aug 2014 12:21:24 +0000 (17:51 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 14 Aug 2014 12:21:24 +0000 (17:51 +0530)
https://issues.civicrm.org/jira/browse/CRM-15108

CRM/Contact/Form/Search.php

index fd57b61242d92c8181389eb59fd6ef15b208647e..6ac6b9f38a43f235ec94dbd56d0584a95121251b 100644 (file)
@@ -450,6 +450,10 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
         )
       );
       $this->add('hidden', 'task', CRM_Contact_Task::GROUP_CONTACTS);
+      $selectedRowsRadio = $this->addElement('radio', 'radio_ts', NULL, '', 'ts_sel', array('checked' => 'checked'));
+      $allRowsRadio = $this->addElement('radio', 'radio_ts', NULL, '', 'ts_all');
+      $this->assign('ts_sel_id', $selectedRowsRadio->_attributes['id']);
+      $this->assign('ts_all_id', $allRowsRadio->_attributes['id']);
     }
     else {
       $this->addTaskMenu($tasks);