* Remove function Invalid parameter and merge the if judgment.

This commit is contained in:
liyang
2023-05-09 19:33:34 +08:00
parent b6ec7f7ece
commit 4cd632eb9f
+2 -7
View File
@@ -344,12 +344,10 @@ class executionModel extends model
/**
* Create a execution.
*
* @param int $copyExecutionID
*
* @access public
* @return bool|int
*/
public function create($copyExecutionID = '')
public function create()
{
$this->lang->execution->team = $this->lang->execution->teamname;
@@ -426,10 +424,7 @@ class executionModel extends model
$sprint->hasProduct = $project->hasProduct;
}
if(isset($_POST['heightType']) and $this->post->heightType == 'custom')
{
if(!$this->loadModel('kanban')->checkDisplayCards($sprint->displayCards)) return;
}
if($this->post->heightType == 'custom' and !$this->loadModel('kanban')->checkDisplayCards($sprint->displayCards)) return;
/* Check the workload format and total. */
if(!empty($sprint->percent) and isset($this->config->setPercent) and $this->config->setPercent == 1) $this->checkWorkload('create', $sprint->percent, $sprint->project);