X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FGrant%2FForm%2FTask.php;h=d47a9eec1689ae701c2344222c8aaec898cab069;hb=1188c7a8512382b1cb588b6a1ea4b13aa9587bc9;hp=26ce02f77bd826eda7b0a50491b05839882b1f80;hpb=30b6117f306e9e037c1b9776848cdf8fd6d7ad45;p=civicrm-core.git diff --git a/CRM/Grant/Form/Task.php b/CRM/Grant/Form/Task.php index 26ce02f77b..d47a9eec16 100644 --- a/CRM/Grant/Form/Task.php +++ b/CRM/Grant/Form/Task.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2019 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2019 + * @copyright CiviCRM LLC https://civicrm.org/licensing * $Id$ * */ @@ -61,9 +61,9 @@ class CRM_Grant_Form_Task extends CRM_Core_Form_Task { * @param CRM_Core_Form $form */ public static function preProcessCommon(&$form) { - $form->_grantIds = array(); + $form->_grantIds = []; - $values = $form->controller->exportValues('Search'); + $values = $form->controller->exportValues($form->get('searchFormName')); $form->_task = $values['task']; $tasks = CRM_Grant_Task::tasks(); @@ -72,7 +72,7 @@ class CRM_Grant_Form_Task extends CRM_Core_Form_Task { } $form->assign('taskName', $tasks[$form->_task]); - $ids = array(); + $ids = []; if ($values['radio_ts'] == 'ts_sel') { foreach ($values as $name => $value) { if (substr($name, 0, CRM_Core_Form::CB_PREFIX_LEN) == CRM_Core_Form::CB_PREFIX) { @@ -137,18 +137,17 @@ class CRM_Grant_Form_Task extends CRM_Core_Form_Task { * @param bool $submitOnce */ public function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) { - $this->addButtons(array( - array( - 'type' => $nextType, - 'name' => $title, - 'isDefault' => TRUE, - ), - array( - 'type' => $backType, - 'name' => ts('Cancel'), - ), - ) - ); + $this->addButtons([ + [ + 'type' => $nextType, + 'name' => $title, + 'isDefault' => TRUE, + ], + [ + 'type' => $backType, + 'name' => ts('Cancel'), + ], + ]); } }