<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
*
* @param CRM_Core_Controller $controller the controller object
*
+ * @param string $formName
+ *
* @return string the name of the form that will handle the task
* @access protected
*/
function taskName($controller, $formName = 'Search') {
// total hack, check POST vars and then session to determine stuff
- // fix value if print button is pressed
- if (CRM_Utils_Array::value('_qf_' . $formName . '_next_print', $_POST)) {
- $value = CRM_Campaign_Task::PRINT_VOTERS;
- }
- else {
- $value = CRM_Utils_Array::value('task', $_POST);
- }
+ $value = CRM_Utils_Array::value('task', $_POST);
if (!isset($value)) {
$value = $this->_controller->get('task');
}