From 2c2141e05580520fdb987808d97f9752aa30184b Mon Sep 17 00:00:00 2001 From: zenggang Date: Thu, 21 Jul 2022 09:04:46 +0000 Subject: [PATCH] * Fix bug#25591,25593 --- module/program/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index 6c7f8403e6..0902ba4f4f 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -26,7 +26,7 @@ class program extends control * @access public * @return void */ - public function browse($status = 'all', $orderBy = 'order_asc', $recTotal = 0, $recPerPage = 10, $pageID = 1, $param = 0) + public function browse($status = 'doing', $orderBy = 'order_asc', $recTotal = 0, $recPerPage = 10, $pageID = 1, $param = 0) { if(common::hasPriv('program', 'create')) $this->lang->pageActions = html::a($this->createLink('program', 'create'), " " . $this->lang->program->create, '', "class='btn btn-primary create-program-btn'"); @@ -234,7 +234,7 @@ class program extends control $this->action->logHistory($actionID, $changes); } - return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inLink('browse'))); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->session->programList ? $this->session->programList : inLink('browse'))); } $program = $this->program->getByID($programID);