* Fix bug #42480, refresh project stats after man hour changing.

This commit is contained in:
liumengyi
2024-02-01 13:44:35 +08:00
parent 9b75ee76ec
commit acfbbfda1b
4 changed files with 102 additions and 2 deletions
+14
View File
@@ -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.
*