* Get module type, it's used in treeEditor wg.

This commit is contained in:
liumengyi
2024-02-19 14:32:11 +08:00
parent f0e0456f07
commit 3aef1d40fd
+1 -1
View File
@@ -90,7 +90,7 @@ class treeModel extends model
if(($type == 'feedback' || $type == 'ticket') && strpos($param, 'noproduct') === false && isset($syncConfig[$rootID])) $type = 'story,' . $type;
if($this->isMergeModule($rootID, $type))
{
return $this->dao->select('id, name, root, branch, grade, path, parent, owner')->from(TABLE_MODULE)
return $this->dao->select('id, name, root, branch, grade, path, parent, owner, type')->from(TABLE_MODULE)
->where('root')->eq((int)$rootID)
->beginIF($type == 'task')->andWhere('type')->eq('task')->fi()
->beginIF($type != 'task')->andWhere('type')->in("story,$type")->fi()