From 9b844a60151c095886428cd117d6a6910da3533a Mon Sep 17 00:00:00 2001 From: loucongjun <905507426@qq.com> Date: Thu, 3 Sep 2026 15:49:15 +0800 Subject: [PATCH] fix(backend): disable type filter in attachment query Comment out the type condition to allow retrieving all attachments regardless of their type in the backend controller. --- app/controller/backend/AttachmentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/backend/AttachmentController.php b/app/controller/backend/AttachmentController.php index d20d6bb..a86d4be 100644 --- a/app/controller/backend/AttachmentController.php +++ b/app/controller/backend/AttachmentController.php @@ -58,7 +58,7 @@ class AttachmentController extends BaseController } } if($type){ - $where[] = ['type', '=', $type]; + // $where[] = ['type', '=', $type]; } $name = input('name'); if(!empty($name)){