* Add param for tree manageChild control.

This commit is contained in:
songchenxuan
2024-03-27 11:06:45 +08:00
committed by liyang
parent 6c82e0851f
commit cdcc4352bd
+3 -1
View File
@@ -270,10 +270,11 @@ class tree extends control
*
* @param int $rootID
* @param string $viewType
* @param string $oldPage yes|no
* @access public
* @return void
*/
public function manageChild(int $rootID, string $viewType)
public function manageChild(int $rootID, string $viewType, string $oldPage = 'no')
{
if(!empty($_POST))
{
@@ -286,6 +287,7 @@ class tree extends control
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "renderModulePicker($rootID, '$viewType');"));
}
if($oldPage == 'yes') return print(js::reload('parent'));
return $this->sendSuccess(array('load' => true));
}
}