From 8b7bc2e89c377372d65bf3adc94a3daccb51eada Mon Sep 17 00:00:00 2001 From: wangyuting Date: Fri, 25 Apr 2025 17:01:30 +0800 Subject: [PATCH] * [task#142086,doing,1h,3h] Check if deliverable has been uploaded when edit stage. --- module/programplan/ui/edit.html.php | 2 +- module/programplan/zen.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/programplan/ui/edit.html.php b/module/programplan/ui/edit.html.php index 195582d4fa..286a92d018 100644 --- a/module/programplan/ui/edit.html.php +++ b/module/programplan/ui/edit.html.php @@ -95,7 +95,7 @@ formPanel ( setID('attributeType'), setClass('flex self-center w-full'), - $enableOptionalAttr ? picker + $enableOptionalAttr && empty($plan->hasDeliverable) ? picker ( setID('attribute'), set::name('attribute'), diff --git a/module/programplan/zen.php b/module/programplan/zen.php index 90f2d9bcd9..c08ff34d5d 100644 --- a/module/programplan/zen.php +++ b/module/programplan/zen.php @@ -279,7 +279,7 @@ class programplanZen extends programplan * @access protected * @return void */ - protected function buildEditView(object $plan) + public function buildEditView(object $plan) { $this->loadModel('project'); $this->loadModel('execution');