From db5d8694c4d0f9ec8884d01de1abbd0f8d68e8d4 Mon Sep 17 00:00:00 2001 From: LibXZR Date: Mon, 8 Jan 2024 22:56:39 +0800 Subject: [PATCH] Fix unable to show attachment parent in manage-medias (#1693) --- var/Widget/Contents/Attachment/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Contents/Attachment/Admin.php b/var/Widget/Contents/Attachment/Admin.php index 673075af..cdf41dd2 100644 --- a/var/Widget/Contents/Attachment/Admin.php +++ b/var/Widget/Contents/Attachment/Admin.php @@ -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) )); } }