This commit is contained in:
qiyu-xie
2020-08-10 16:22:10 +08:00
parent 5b75245191
commit 21fe8daa0d
2 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -338,7 +338,7 @@ class docModel extends model
->andWhere('addedBy')->eq($this->app->user->account)
->orderBy($sort)
->page($pager)
->fetchAll();
->fetchAll('id');
}
elseif($browseType == 'byediteddate')
{
@@ -365,7 +365,7 @@ class docModel extends model
->andWhere('collector')->like("%,{$this->app->user->account},%")
->orderBy($sort)
->page($pager)
->fetchAll();
->fetchAll('id');
}
elseif($browseType == "bymodule")
{
@@ -422,7 +422,7 @@ class docModel extends model
->andWhere('lib')->in($allLibs)
->orderBy($sort)
->page($pager)
->fetchAll();
->fetchAll('id');
}
elseif($browseType == 'fastsearch')
{
@@ -440,7 +440,7 @@ class docModel extends model
->andWhere('t1.lib')->in($allLibs)
->orderBy($sort)
->page($pager)
->fetchAll();
->fetchAll('id');
foreach($docs as $doc) $doc->title = str_replace($this->session->searchDoc, "<span style='color:red'>{$this->session->searchDoc}</span>", $doc->title);
}
+2
View File
@@ -1649,6 +1649,8 @@ class project extends control
$this->app->session->set('taskList', $uri);
$this->app->session->set('storyList', $uri);
$this->app->session->set('projectList', $uri);
$this->app->session->set('caseList', $uri);
$this->app->session->set('bugList', $uri);
if($type === 'json') die(helper::jsonEncode4Parse($tree, JSON_HEX_QUOT | JSON_HEX_APOS));