From a1bf3d037bf5f7662e6e55c63e39c13efb304809 Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 9 Sep 2021 20:18:11 +0800 Subject: [PATCH] fix #1162 --- admin/file-upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/file-upload.php b/admin/file-upload.php index e1aba635..bfdcaf7a 100644 --- a/admin/file-upload.php +++ b/admin/file-upload.php @@ -3,9 +3,9 @@ cid : $page->cid; - + if ($cid) { - \Widget\Contents\Related::alloc(['parentId' => $cid])->to($attachment); + \Widget\Contents\Attachment\Related::alloc(['parentId' => $cid])->to($attachment); } else { \Widget\Contents\Attachment\Unattached::alloc()->to($attachment); }