From 28573a0b2aae7a15849d758ca88e0b7978f75f58 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 25 Feb 2021 10:19:11 +0800 Subject: [PATCH] * Update sprints history. --- module/upgrade/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/upgrade/control.php b/module/upgrade/control.php index 935612ee20..e9e8096203 100644 --- a/module/upgrade/control.php +++ b/module/upgrade/control.php @@ -305,7 +305,9 @@ class upgrade extends control $hourPoint = $this->loadModel('setting')->getItem('owner=system&module=custom&key=hourPoint'); if(empty($hourPoint)) $this->setting->setItem('system.custom.hourPoint', 0); - $this->dao->update(TABLE_ACTION)->set('objectType')->eq('execution')->where('objectType')->eq('project')->exec(); + /* Update sprints history. */ + $sprints = $this->dao->select('id')->from(TABLE_PROJECT)->where('type')->eq('sprint')->fetchAll(); + $this->dao->update(TABLE_ACTION)->set('objectType')->eq('execution')->where('objectID')->in(array_keys($sprints))->exec(); die(js::locate($this->createLink('upgrade', 'mergeRepo'))); }