* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user