From d36f5aa1ac569284c8bdda6baa2a64c416e0efd5 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 3 Mar 2025 03:25:58 +0000 Subject: [PATCH] * [bug#60086,done,0.1h] fix bug. --- module/execution/zen.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/execution/zen.php b/module/execution/zen.php index e50a7b17d3..e94c1b11b8 100644 --- a/module/execution/zen.php +++ b/module/execution/zen.php @@ -956,6 +956,13 @@ class executionZen extends execution ->get(); if(!empty($execution->parent) && ($execution->project == $execution->parent)) $execution->hasProduct = $project->hasProduct; + if(!empty($execution->parent) && empty($execution->attribute)) + { + /* 子阶段与父阶段同类型。 */ + $parent = $this->execution->fetchByID((int)$execution->parent); + $execution->attribute = $parent->attribute; + } + if($this->post->heightType == 'custom' && !$this->loadModel('kanban')->checkDisplayCards($execution->displayCards)) return false; if(!$this->checkPostForCreate()) return false;