* Rename recordEstimate to recordWorkhour.

This commit is contained in:
sunguangming
2023-05-25 15:53:00 +08:00
parent 649956a752
commit 2777ec9622
19 changed files with 53 additions and 55 deletions
+4 -3
View File
@@ -452,7 +452,8 @@ class task extends control
}
/**
* Record consumed and estimate.
* 任务查看工时/新增工时的方法。
* View and add task's effort.
*
* @param int $taskID
* @param string $from
@@ -460,7 +461,7 @@ class task extends control
* @access public
* @return void
*/
public function recordWorkhour($taskID, $from = '', $orderBy = '')
public function recordWorkhour(int $taskID, string $from = '', string $orderBy = '')
{
$this->taskZen->commonAction($taskID);
@@ -538,7 +539,7 @@ class task extends control
/* Set the fold state of the current task. */
$referer = strtolower($_SERVER['HTTP_REFERER']);
if(strpos($referer, 'recordestimate') and $this->cookie->taskEffortFold !== false)
if(strpos($referer, 'recordworkhour') and $this->cookie->taskEffortFold !== false)
{
$taskEffortFold = $this->cookie->taskEffortFold;
}