* Fix bug#34823, if the product or project has not been created, view the interface detail will jump to create product or project.

This commit is contained in:
chaideqing
2023-05-18 15:04:39 +08:00
parent bb9059d339
commit 79dfd86b8f

View File

@@ -194,7 +194,8 @@ class api extends control
if($methodName != 'index') $linkParams = "objectID=$linkObject&$linkParams";
$objectID = $this->objectID;
if($this->cookie->docSpaceParam)
if($this->cookie->docSpaceParam) $docParam = json_decode($this->cookie->docSpaceParam);
if(isset($docParam) and !(in_array($docParam->type, array('product', 'project')) and $docParam->objectID == 0))
{
$docParam = json_decode($this->cookie->docSpaceParam);
$type = $docParam->type;