public static function preProcessCommon(&$form) {
$form->_activityHolderIds = [];
- $values = $form->controller->exportValues($form->get('searchFormName'));
+ $values = $form->getSearchFormValues();
$form->_task = $values['task'];
- $activityTasks = CRM_Activity_Task::tasks();
- $form->assign('taskName', $activityTasks[$form->_task]);
$ids = [];
if ($values['radio_ts'] == 'ts_sel') {
public static function preProcessCommon(&$form) {
$form->_contributionIds = [];
- $values = $form->controller->exportValues($form->get('searchFormName'));
+ $values = $form->getSearchFormValues();
$form->_task = $values['task'] ?? NULL;
- $contributeTasks = CRM_Contribute_Task::tasks();
- $form->assign('taskName', CRM_Utils_Array::value($form->_task, $contributeTasks));
$ids = [];
if (isset($values['radio_ts']) && $values['radio_ts'] == 'ts_sel') {
public static function preProcessCommon(&$form) {
$form->_entityIds = [];
- $searchFormValues = $form->controller->exportValues($form->get('searchFormName'));
+ $searchFormValues = $form->getSearchFormValues();
$form->_task = $searchFormValues['task'];
- $className = 'CRM_' . ucfirst($form::$entityShortname) . '_Task';
- $entityTasks = $className::tasks();
- $form->assign('taskName', $entityTasks[$form->_task]);
$entityIds = [];
if ($searchFormValues['radio_ts'] == 'ts_sel') {
}
/**
- * @param CRM_Core_Form $form
+ * @param \CRM_Core_Form_Task $form
+ *
+ * @throws \CRM_Core_Exception
*/
public static function preProcessCommon(&$form) {
- $values = $form->controller->exportValues($form->get('searchFormName'));
+ $values = $form->getSearchFormValues();
$form->_task = $values['task'] ?? NULL;
- $mailingTasks = CRM_Mailing_Task::tasks();
- $form->assign('taskName', CRM_Utils_Array::value('task', $values));
// ids are mailing event queue ids
$ids = [];