From a2d1647922ec5ae2a89c0b6d532b8bfac0c6dbd9 Mon Sep 17 00:00:00 2001 From: dingyongliang Date: Mon, 28 Oct 2024 09:15:24 +0800 Subject: [PATCH] * [task#131136] refetch lib data after editlib. --- module/doc/control.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index abdc727f35..63708eb4e2 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -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;