This commit is contained in:
tianshujie
2022-03-02 14:30:41 +08:00
parent b6cd92a386
commit a9f1fcabc2
+5 -1
View File
@@ -2614,7 +2614,11 @@ EOT;
$object = $this->dao->select('id,name,status')->from($table)->where('id')->eq($objectID)->fetch();
if(empty($object)) return print(js::locate(helper::createLink($type, 'create')));
if(empty($object))
{
$param = ($type == 'project' and $this->config->vision == 'lite') ? 'model=kanban' : '';
return print(js::locate(helper::createLink($type, 'create', $param)));
}
}
$tab = strpos(',doc,product,project,execution,', ",{$this->app->tab},") !== false ? $this->app->tab : 'doc';