* adjust for dynamic.

This commit is contained in:
tanghucheng
2022-01-21 11:06:22 +08:00
parent e8053d6c9a
commit 565ade2d53
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -48,6 +48,7 @@ class actionModel extends model
$action->action = $actionType;
$action->date = helper::now();
$action->extra = $extra;
$action->vision = $this->config->vision;
if($objectType == 'story' and strpos(',reviewpassed,reviewrejected,reviewclarified,', ",$actionType,") !== false) $action->actor = $this->lang->action->system;
@@ -868,6 +869,7 @@ class actionModel extends model
/* Get actions. */
$actions = $this->dao->select('*')->from(TABLE_ACTION)
->where('objectType')->notIN('kanbanregion,kanbanlane,kanbancolumn')
->andWhere('vision')->eq($this->config->vision)
->beginIF($period != 'all')->andWhere('date')->gt($begin)->fi()
->beginIF($period != 'all')->andWhere('date')->lt($end)->fi()
->beginIF($date)->andWhere('date' . ($direction == 'next' ? '<' : '>') . "'{$date}'")->fi()