From 4c40da1ec7d621be66f0c66dbe424b8f7e403763 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Sun, 25 Apr 2021 08:24:25 +0800 Subject: [PATCH] * Modify the navigation of the edit program. --- module/common/lang/menu.php | 2 +- module/program/control.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/module/common/lang/menu.php b/module/common/lang/menu.php index f4636bf1a6..3b92fdd05b 100644 --- a/module/common/lang/menu.php +++ b/module/common/lang/menu.php @@ -113,7 +113,7 @@ $lang->my->dividerMenu = ',work,dynamic,'; /* Program menu. */ $lang->program->homeMenu = new stdclass(); -$lang->program->homeMenu->browse = array('link' => "{$lang->program->list}|program|browse|", 'alias' => 'create'); +$lang->program->homeMenu->browse = array('link' => "{$lang->program->list}|program|browse|", 'alias' => 'create,edit'); $lang->program->menu = new stdclass(); $lang->program->menu->product = array('link' => "{$lang->product->common}|program|product|programID=%s", 'alias' => 'view'); diff --git a/module/program/control.php b/module/program/control.php index 1e961137b0..b9c7e7be63 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -168,8 +168,6 @@ class program extends control $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inLink('browse'))); } - $this->program->setMenu($programID); - $program = $this->program->getByID($programID); $parentProgram = $program->parent ? $this->program->getByID($program->parent) : ''; $parents = $this->program->getParentPairs();