From 91f6d1b9f0b0484ed09984dbb2b6a3ecb4fbeee4 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 7 Nov 2022 09:54:41 +0800 Subject: [PATCH] * Fix bug #29293. --- module/task/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/task/control.php b/module/task/control.php index c54d8265ff..03625abb28 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -543,13 +543,13 @@ class task extends control * Edit a task. * * @param int $taskID - * @param bool $comment + * @param string $comment * @param string $kanbanGroup * @param string $from * @access public * @return void */ - public function edit($taskID, $comment = false, $kanbanGroup = 'default', $from = '') + public function edit($taskID, $comment = 'false', $kanbanGroup = 'default', $from = '') { $this->commonAction($taskID); $task = $this->task->getById($taskID); @@ -558,7 +558,7 @@ class task extends control { $this->loadModel('action'); $changes = array(); - if($comment == false) + if($comment == 'false' or $comment == false) { $changes = $this->task->update($taskID); if(dao::isError()) return print(js::error(dao::getError()));