From 8294bc2235f3cbbbbe80e35055a49c2237a051f6 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Mon, 8 Mar 2021 16:26:43 +0800 Subject: [PATCH] * Fix an error. --- module/product/control.php | 1 + module/product/view/browse.html.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index 54254ebd8a..831835d4f6 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -129,6 +129,7 @@ class product extends control /* Load datatable. */ $this->loadModel('datatable'); + $this->loadModel('execution'); /* Set product, module and query. */ $productID = $this->product->saveState($productID, $this->products); diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index b9169996f8..4780b13a5a 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -21,8 +21,8 @@ $unfoldStories = isset($config->product->browse->unfoldStories) ? json_decode($config->product->browse->unfoldStories, true) : array(); $unfoldStories = zget($unfoldStories, $productID, array()); js::set('unfoldStories', $unfoldStories); -js::set('unfoldAll', $lang->project->treeLevel['all']); -js::set('foldAll', $lang->project->treeLevel['root']); +js::set('unfoldAll', $lang->execution->treeLevel['all']); +js::set('foldAll', $lang->execution->treeLevel['root']); js::set('storyType', $storyType); $lang->story->createCommon = $storyType == 'story' ? $lang->story->createStory : $lang->story->createRequirement; $isProjectStory = $this->app->rawModule == 'projectstory';