This commit is contained in:
zhouxudong
2022-06-10 04:57:04 +00:00
parent 5917d86f0d
commit 8f879f7516
+28
View File
@@ -6319,4 +6319,32 @@ class upgradeModel extends model
$this->setting->deleteItems('owner=system&module=story&section=&key=forceReviewAll');
}
public function replaceSetLanePriv()
{
$groupIDList = $this->dao->select('group')->from(TABLE_GROUPPRIV)
->where('module')->eq('kanban')
->andWhere('method')->eq('setLane')
->fetchAll();
if(!empty($groupIDList))
{
$this->dao->delete()->from(TABLE_GROUPPRIV)
->where('module')->eq('kanban')
->andWhere('method')->eq('setLane')
->exec();
}
foreach($groupIDList as $groupID)
{
$data = new stdClass();
$data->group = $groupID;
$data->module = 'kanban';
$data->method = 'editLaneName';
$this->dao->insert(TABLE_GROUPPRIV)->data($data)->exec();
$data->method = 'editLaneColor';
$this->dao->insert(TABLE_GROUPPRIV)->data($data)->exec();
}
}
}