From a2a8552221a149bc87b3734d0b9f1b2d0365e4a0 Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 28 Oct 2021 09:52:35 +0800 Subject: [PATCH] *Fix a bug #15793. --- module/program/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/program/control.php b/module/program/control.php index b2ac179ed0..96f258ba11 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -203,7 +203,9 @@ class program extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inLink('browse'))); } - $program = $this->program->getByID($programID); + $program = $this->program->getByID($programID); + $program->realBegan = helper::isZeroDate($program->realBegan) ? '' : $program->realBegan; + $parentProgram = $program->parent ? $this->program->getByID($program->parent) : ''; $parents = $this->program->getParentPairs();