From 4634ca23583041e43c24e8daf3efeef0648cf681 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 2 Sep 2025 01:00:32 +0000 Subject: [PATCH] * [bug#65057] Fix the bug of show product release list in doc. --- module/doc/control.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index cb3e6b23bb..1c8d979a5c 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -226,9 +226,14 @@ class doc extends control if($type == 'productRelease') { - $children = implode(',', array_column($this->view->data, 'releases')); + $releaseList = array(); + foreach($this->view->data as $release) + { + if($release->id == $release->rowID) $releaseList[$release->id] = $release; + } + $children = implode(',', array_column($releaseList, 'releases')); $childReleases = $this->loadModel('release')->getListByCondition(explode(',', $children), 0, true); - $this->view->data = $this->release->processReleaseListData($this->view->data, $childReleases, false); + $this->view->data = $this->release->processReleaseListData($releaseList, $childReleases, false); } $this->display();