From 289bbad61011ea3a2ea576956da5fb4985cd789c Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 8 Nov 2023 10:28:36 +0800 Subject: [PATCH] * bugModel: call the method fetchByID declared in parent class instead of the method fetchBugInfo declared in bugTao class. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index e7a39a9af4..2ab525510d 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -164,7 +164,7 @@ class bugModel extends model */ public function getByID(int $bugID, bool $setImgSize = false): object|false { - $bug = $this->bugTao->fetchBugInfo($bugID); + $bug = parent::fetchByID($bugID); if(!$bug) return false; $this->loadModel('file');