From dfdb2f629e80bd4acefbfa6e82f2391dbe140ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=8D=8E=E4=BC=9F?= Date: Tue, 15 Feb 2022 11:22:31 +0800 Subject: [PATCH] Fix bug #19247. --- module/story/control.php | 2 +- module/story/lang/en.php | 1 + module/story/lang/zh-cn.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 4823d8cb2c..553550743c 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -334,7 +334,7 @@ class story extends control $this->view->users = $users; $this->view->moduleID = $moduleID ? $moduleID : (int)$this->cookie->lastStoryModule; $this->view->moduleOptionMenu = $moduleOptionMenu; - $this->view->plans = $this->loadModel('productplan')->getPairsForStory($productID, $branch, 'skipParent|unexpired'); + $this->view->plans = str_replace('2030-01-01', $this->lang->story->undetermined, $this->loadModel('productplan')->getPairsForStory($productID, $branch, 'skipParent|unexpired')); $this->view->planID = $planID; $this->view->source = $source; $this->view->sourceNote = $sourceNote; diff --git a/module/story/lang/en.php b/module/story/lang/en.php index 6c6ea9a440..2241c87c7c 100644 --- a/module/story/lang/en.php +++ b/module/story/lang/en.php @@ -68,6 +68,7 @@ $lang->story->viewAll = "See All"; $lang->story->toTask = 'Convert to Task'; $lang->story->batchToTask = 'Batch Convert to Task'; $lang->story->convertRelations = 'Convert Relations'; +$lang->story->undetermined = 'undetermined'; $lang->story->editAction = "Edit {$lang->SRCommon}"; $lang->story->changeAction = "Change {$lang->SRCommon}"; diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php index 9e7c9209aa..8395a6d1de 100644 --- a/module/story/lang/zh-cn.php +++ b/module/story/lang/zh-cn.php @@ -68,6 +68,7 @@ $lang->story->viewAll = '查看全部'; $lang->story->toTask = '转任务'; $lang->story->batchToTask = '批量转任务'; $lang->story->convertRelations = '换算关系'; +$lang->story->undetermined = '待定'; $lang->story->editAction = "编辑{$lang->SRCommon}"; $lang->story->changeAction = "变更{$lang->SRCommon}";