From 08a8b5f2e9ea3664963cc38b305ceda86cfee88e Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Mon, 18 Jan 2021 13:16:19 +0800 Subject: [PATCH] * Finish task#8962. Fix bug. --- module/program/control.php | 2 +- module/program/view/pgmcreate.html.php | 2 +- module/program/view/pgmedit.html.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index 7e9e31f8c0..27f6f139be 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -146,7 +146,7 @@ class program extends control { $this->lang->navGroup->program = 'program'; - $parentProgram = $parentProgramID ? $this->program->getPGMByID($parentProgramID) : ''; + $parentProgram = $this->program->getPGMByID($parentProgramID); if($_POST) { diff --git a/module/program/view/pgmcreate.html.php b/module/program/view/pgmcreate.html.php index 933eab4da1..ec61909b52 100644 --- a/module/program/view/pgmcreate.html.php +++ b/module/program/view/pgmcreate.html.php @@ -66,7 +66,7 @@ program->PGMBudget;?>
- budget != 0 ? 'placeholder=' . $lang->program->PGMParentBudget . $remainBudget : '';?> + budget != 0 ? 'placeholder=' . $lang->program->PGMParentBudget . $remainBudget : '';?> budgetUnit);?> diff --git a/module/program/view/pgmedit.html.php b/module/program/view/pgmedit.html.php index 20bdfa7b67..915dc13a86 100644 --- a/module/program/view/pgmedit.html.php +++ b/module/program/view/pgmedit.html.php @@ -44,7 +44,7 @@ program->PGMBudget;?>
- budget != 0 ? 'placeholder=' . $lang->program->PGMParentBudget . $remainBudget : '';?> + budget != 0 ? 'placeholder=' . $lang->program->PGMParentBudget . $remainBudget : '';?> budget != 0 ? $program->budget : '', "class='form-control' " . (strpos($requiredFields, 'budget') !== false ? 'required ' : '') . ($program->budget == 0 ? 'disabled ' : '') . $placeholder);?> budgetUnit);?>