From 764d54148d17d1edf1e46516a115fa3246a00f62 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 15 Jun 2022 15:18:47 +0800 Subject: [PATCH] * Fix bug 23744. --- module/execution/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 0039b36191..53388bcb8a 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2531,7 +2531,7 @@ class executionModel extends model { $plans = $this->dao->select('plan')->from(TABLE_PROJECTPRODUCT) ->where('project')->eq($executionID) - ->fetchAll(); + ->fetchPairs('plan'); $planStories = array(); $planProducts = array(); @@ -2539,10 +2539,10 @@ class executionModel extends model $this->loadModel('story'); if(!empty($plans)) { - foreach($plans as $plan) + foreach($plans as $planIDList) { - if(empty($plan)) continue; - $planIDList = explode(',', $plan->plan); + if(empty($planIDList)) continue; + $planIDList = explode(',', $planIDList); foreach($planIDList as $planID) { $planStory = $this->story->getPlanStories($planID);