From 60afff4fcdad5816f566595c64ad3c2998d9ad0e Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 28 Oct 2021 10:04:55 +0800 Subject: [PATCH] *Fix a bug #15793. --- module/program/control.php | 4 +--- module/program/view/edit.html.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index 96f258ba11..b2ac179ed0 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -203,9 +203,7 @@ class program extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inLink('browse'))); } - $program = $this->program->getByID($programID); - $program->realBegan = helper::isZeroDate($program->realBegan) ? '' : $program->realBegan; - + $program = $this->program->getByID($programID); $parentProgram = $program->parent ? $this->program->getByID($program->parent) : ''; $parents = $this->program->getParentPairs(); diff --git a/module/program/view/edit.html.php b/module/program/view/edit.html.php index 06fe71d320..5730dd37be 100644 --- a/module/program/view/edit.html.php +++ b/module/program/view/edit.html.php @@ -85,7 +85,7 @@ project->realBegan;?> - realBegan, "class='form-control form-date'");?> + realBegan) ? '' : $program->realBegan, "class='form-control form-date'");?> program->desc;?>