* [bug #56149, doing] load home libs after edit lib.

This commit is contained in:
sunhao
2024-10-17 13:37:34 +08:00
committed by 刘刚
parent 4f71343721
commit 7ebb62bc8b
+4 -1
View File
@@ -192,7 +192,10 @@ class doc extends control
}
$lib = $this->doc->getLibByID($libID);
return $this->send(array('message' => $this->lang->saveSuccess, 'result' => 'success', 'closeModal' => true, 'docApp' => array('update', ($lib->parent == 0) ? 'space' : 'lib', $lib)));
$docAppActions = array();
$docAppActions[] = array('update', ($lib->parent == 0) ? 'space' : 'lib', $lib);
$docAppActions[] = array('home:loadHomeLibs');
return $this->send(array('message' => $this->lang->saveSuccess, 'result' => 'success', 'closeModal' => true, 'docApp' => $docAppActions));
}
if(!empty($lib->product)) $this->view->object = $this->product->getByID($lib->product);