From 62f2d7f1cf28ded6fba99922da41c2eea87b5a1c Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 29 Apr 2024 10:27:03 +0800 Subject: [PATCH] * Fix bug 48673. --- module/execution/model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index e7fc42a29d..5bff944cbc 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2133,6 +2133,9 @@ class executionModel extends model $execution = $this->loadModel('file')->replaceImgURL($execution, 'desc'); if($setImgSize) $execution->desc = $this->file->setImgSize($execution->desc); + $child = $this->dao->select('id')->from(TABLE_EXECUTION)->where('parent')->eq($executionID)->andWhere('deleted')->eq(0)->fetch('id'); + $execution->isParent = !empty($child) ? 1 : 0; + return $execution; }