From deb945d5daeb63702ca2690f47b26683602526bb Mon Sep 17 00:00:00 2001 From: daitingting Date: Fri, 18 Oct 2024 07:17:16 +0000 Subject: [PATCH] * [misc] Adjust response after batch move documents. --- module/doc/control.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 554f2dfcf2..136c60384b 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1327,13 +1327,7 @@ class doc extends control $this->docZen->recordBatchMoveActions($oldDocList, $data); - $locate = true; - if($type == 'mine') $locate = inlink('mySpace', "objectID={$spaceID}&libID={$libID}&moduleID={$moduleID}"); - if($type == 'custom') $locate = inlink('teamSpace', "objectID={$spaceID}&libID={$libID}&moduleID={$moduleID}"); - if($type == 'product') $locate = inlink('productSpace', "objectID={$spaceID}&libID={$libID}&moduleID={$moduleID}"); - if($type == 'project') $locate = inlink('projectSpace', "objectID={$spaceID}&libID={$libID}&moduleID={$moduleID}"); - - return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'load' => $locate)); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'docApp' => array('load', null, null, null, array('noLoading' => true, 'picks' => 'doc')))); } $products = $type == 'product' ? array($spaceID => $spaceID) : array();