$this->_pages['CRM_Contact_Form_Search_Builder'] = NULL;
list($task, $result) = $this->taskName($controller, 'Builder');
}
+ // @todo - this 'should' be removable but it's getting to this controller, for now
elseif ($action == CRM_Core_Action::COPY) {
$this->_pages['CRM_Contact_Form_Search_Custom'] = NULL;
list($task, $result) = $this->taskName($controller, 'Custom');
*/
public function taskName($controller, $formName = 'Search') {
// total hack, check POST vars and then session to determine stuff
- $value = CRM_Utils_Array::value('task', $_POST);
+ $value = $_POST['task'] ?? NULL;
if (!isset($value)) {
$value = $this->_controller->get('task');
}