* bugModel: call the method fetchByID declared in parent class instead of the method fetchBugInfo declared in bugTao class.

This commit is contained in:
liugang
2023-11-08 10:28:36 +08:00
parent 36dbf2fc36
commit 289bbad610
+1 -1
View File
@@ -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');