Fix unable to show attachment parent in manage-medias (#1693)

This commit is contained in:
LibXZR
2024-01-08 22:56:39 +08:00
committed by GitHub
parent 2051c040ec
commit db5d8694c4

View File

@@ -62,7 +62,7 @@ class Admin extends Contents
protected function ___parentPost(): Config
{
return new Config($this->db->fetchRow(
$this->select()->where('table.contents.cid = ?', $this->parentId)->limit(1)
$this->select()->where('table.contents.cid = ?', $this->parent)->limit(1)
));
}
}