Browse Source

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.
master
loucongjun 2 weeks ago
parent
commit
9b844a6015
  1. 2
      app/controller/backend/AttachmentController.php

2
app/controller/backend/AttachmentController.php

@ -58,7 +58,7 @@ class AttachmentController extends BaseController
} }
} }
if($type){ if($type){
$where[] = ['type', '=', $type];
// $where[] = ['type', '=', $type];
} }
$name = input('name'); $name = input('name');
if(!empty($name)){ if(!empty($name)){

Loading…
Cancel
Save