From 162740eddc7c601d25334167cd9a28f5b00969bd Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Mon, 1 Feb 2021 08:28:25 +0800 Subject: [PATCH] * Fix bug. --- module/doc/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/doc/control.php b/module/doc/control.php index 84e903a340..6df7155a40 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -919,6 +919,7 @@ class doc extends control { $this->from = $from; setcookie('from', $from, $this->config->cookieLife, $this->config->webRoot, '', false, true); + $this->session->set('docList', $this->app->getURI(true)); $table = $type == 'product' ? TABLE_PRODUCT : TABLE_PROJECT; $object = $this->dao->select('id,name,status')->from($table)->where('id')->eq($objectID)->fetch(); @@ -966,7 +967,7 @@ class doc extends control $this->view->type = $type; $this->view->object = $object; - $this->view->from = $from; + $this->view->from = $this->lang->navGroup->doc == 'project' ? 'project' : $from; $this->view->libs = $this->doc->getLibsByObject($type, $objectID); $this->view->canBeChanged = common::canModify($type, $object); // Determines whether an object is editable. $this->display();