* add vision for todo and tweak todo create to set vision, part of task #47905.

This commit is contained in:
Wenrui LI
2022-01-25 14:03:24 +08:00
parent 53478d7b9e
commit 30f61c2acc
6 changed files with 20 additions and 0 deletions
+1
View File
@@ -175,6 +175,7 @@ class todoModel extends model
$todo->assignedTo = $this->app->user->account;
$todo->assignedBy = $this->app->user->account;
$todo->assignedDate = $now;
$todo->vision = $todos->vision[$i];
if(in_array($todo->type, $this->config->todo->moduleList)) $todo->idvalue = isset($todos->{$this->config->todo->objectList[$todo->type]}[$i + 1]) ? $todos->{$this->config->todo->objectList[$todo->type]}[$i + 1] : 0;