* Code for task #89485.

This commit is contained in:
tianshujie
2023-03-29 16:20:38 +08:00
parent 49a8030a86
commit c40c41e2ef
3 changed files with 17 additions and 4 deletions
+1 -2
View File
@@ -1035,7 +1035,6 @@ class doc extends control
$table = $this->config->objectTables[$type];
$object = $this->dao->select('id,name,status')->from($table)->where('id')->eq($objectID)->fetch();
if(!empty($_POST)) $searchTitle = $this->post->title;
if(empty($_POST) and !empty($searchTitle)) $this->post->title = $searchTitle;
/* Load pager. */
@@ -1045,7 +1044,7 @@ class doc extends control
$pager = new pager($recTotal, $recPerPage, $pageID);
$this->app->rawMethod = $rawMethod;
$files = $this->doc->getLibFiles($type, $objectID, $orderBy, $pager);
$files = $this->doc->getLibFiles($type, $objectID, $orderBy, $pager);
$this->view->title = $object->name;
$this->view->position[] = $object->name;