From 64b7e36be93e96de0d9bb9e401260adb498b9ea2 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 24 Jan 2024 17:05:50 +0800 Subject: [PATCH] * Fix bug #45139. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 7351899bf7..c4c1a39730 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -562,7 +562,7 @@ class executionModel extends model } else { - $parentAttr = dao::isError() ? '' : $this->dao->select('attribute')->from(TABLE_PROJECT)->where('id')->eq($parentID)->fetch('attribute'); + $parentAttr = dao::isError() ? $attribute : $this->dao->select('attribute')->from(TABLE_PROJECT)->where('id')->eq($parentID)->fetch('attribute'); } if($parentAttr && $parentAttr != $attribute && $parentAttr != 'mix')