From 4c67d442d6158ac3956dcc609d215e45d05159ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Tue, 27 Sep 2016 22:04:09 +0200 Subject: [PATCH] FIX: fix searching in name and overflowin of no-data message --- app/Handlers/Search/Files.php | 1 + resources/views/admin/fileManager/filesTiles.blade.php | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Handlers/Search/Files.php b/app/Handlers/Search/Files.php index 5105b3c5..79d66bce 100644 --- a/app/Handlers/Search/Files.php +++ b/app/Handlers/Search/Files.php @@ -27,6 +27,7 @@ class Files extends Search $token = $this->tokenize($term); return File::where('original_filename', 'LIKE', $token) + ->orWhere('name', 'LIKE', $token) ->orWhere('keywords', 'LIKE', $token) ->orWhere('description', 'LIKE', $token) ->orWhere('mime_type', 'LIKE', $token) diff --git a/resources/views/admin/fileManager/filesTiles.blade.php b/resources/views/admin/fileManager/filesTiles.blade.php index eee274d6..7dc60913 100644 --- a/resources/views/admin/fileManager/filesTiles.blade.php +++ b/resources/views/admin/fileManager/filesTiles.blade.php @@ -1,6 +1,4 @@ -
@forelse($files as $file) -
@include('admin.snippets.card', [ 'body' => ''.\App\Helpers\FileManager::getPreview($file).'', @@ -17,5 +15,4 @@
@lang('admin/fileManager.noFiles')
- @endforelse -
\ No newline at end of file + @endforelse \ No newline at end of file