From: Vincent Vanwaelscappel Date: Thu, 9 Apr 2020 11:32:39 +0000 (+0200) Subject: fix #3582 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e6fabca359315c780f3d628308d94dff3c914d98;p=pmi.git fix #3582 @0.5 --- diff --git a/app/Templates/Search.php b/app/Templates/Search.php index a2fcf60..9a5c0f5 100644 --- a/app/Templates/Search.php +++ b/app/Templates/Search.php @@ -4,7 +4,7 @@ namespace App\Templates; use Cubist\Backpack\app\Magic\Search as SearchEngine; -use Illuminate\Support\Facades\App; +use Cubist\Backpack\Facades\App; class Search extends Base { @@ -36,6 +36,6 @@ class Search extends Base public function setData(&$data) { $request = $data['request']; - $data['results'] = $request->q ? SearchEngine::query($request->q, App::getLocale(), $request->type, $request->limit) : []; + $data['results'] = $request->q ? SearchEngine::query($request->q, App::getLocale(), App::getVariant(), $request->type, $request->limit) : []; } }