* [task#131136] refetch lib data after editlib.

This commit is contained in:
dingyongliang
2024-10-29 09:45:50 +08:00
committed by 朱金勇
parent 1bb3161640
commit 6b771df506
+1 -6
View File
@@ -219,6 +219,7 @@ class doc extends control
$docAppActions = array();
$docAppActions[] = array('update', ($lib->parent == 0) ? 'space' : 'lib', $lib);
$docAppActions[] = array('home:loadHomeLibs');
$docAppActions[] = array('list:load');
return $this->send(array('message' => $this->lang->saveSuccess, 'result' => 'success', 'closeModal' => true, 'docApp' => $docAppActions));
}
@@ -1503,12 +1504,6 @@ class doc extends control
else $menuType = $type == 'custom' ? 'team' : $type;
if(isset($this->lang->doc->menu->{$menuType})) $this->lang->doc->menu->{$menuType}['alias'] .= ',' . $this->app->rawMethod;
if(empty($orderBy))
{
$lib = $this->doc->getLibByID($libID);
if(!empty($lib)) $orderBy = $lib->orderBy;
}
$this->view->type = $type;
$this->view->spaceID = $spaceID;
$this->view->libID = $libID;