From 86ac2e9cd76583a054d237819d2c6bea4e152fa3 Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 25 Dec 2024 10:46:55 +0800 Subject: [PATCH] + [bug#58586] fix bug for fetchall method. --- module/repo/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/repo/model.php b/module/repo/model.php index d44079cd03..5bf1a217f8 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -772,7 +772,7 @@ class repoModel extends model */ public function getByIdList(array $idList): array { - $repos = $this->dao->select('*')->from(TABLE_REPO)->where('deleted')->eq(0)->andWhere('id')->in($idList)->fetchAll('id'); + $repos = $this->dao->select('*')->from(TABLE_REPO)->where('deleted')->eq(0)->andWhere('id')->in($idList)->fetchAll('id', false); foreach($repos as $repo) { if($repo->encrypt == 'base64') $repo->password = base64_decode($repo->password);