* Fix bug #42480, refresh project stats after man hour changing.
This commit is contained in:
@@ -1356,6 +1356,20 @@ class programModel extends model
|
||||
$this->loadModel('action')->cleanActions();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 刷新项目的统计数据。
|
||||
* Refresh stats fields(estimate,consumed,left,progress) of project.
|
||||
*
|
||||
* @param bool $refreshAll
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function refreshProjectStats(int $projectID): void
|
||||
{
|
||||
$this->programTao->updateStats(array($projectID));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the privilege.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user