* refactor.

This commit is contained in:
Catouse
2020-08-25 15:50:35 +08:00
parent 27a76f92cd
commit 57df12b6d1

View File

@@ -16,10 +16,12 @@ class milestone extends control
die;
}
$productID = $this->loadModel('product')->getProductIDByProject($projectID);
$stageList = $this->loadModel('programplan')->getPairs($programID, $productID);
unset($stageList[0]);
$this->view->projectID = $projectID;
$this->view->programID = $programID;
$this->view->stageList = $stageList;
@@ -54,7 +56,7 @@ class milestone extends control
public function ajaxSaveEstimate()
{
$taskID = $this->post->taskID;
$estimate = $this->post->estimate;
$estimate = $this->post->estimate;
$re = $this->milestone->ajaxSaveEstimate($taskID,$estimate);
$this->send(array('result' => 'success','message' => $this->lang->saveSuccess));
}