* [misc] Adjust response after batch move documents.

This commit is contained in:
daitingting
2024-10-18 15:20:09 +08:00
committed by 綦新志
parent 94f75e0bf4
commit deb945d5da
+1 -7
View File
@@ -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();