From a9f1fcabc22988d93a72a44edf7d2bd16acfccc7 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 2 Mar 2022 14:30:41 +0800 Subject: [PATCH] * Fix bug #20247. --- module/doc/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index ca179ac701..0467144b01 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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';