Minor - fix error when no keyword found

pull/2487/head
jmontoyaa 7 years ago
parent 28e7366aab
commit 64c5051306
  1. 3
      src/CoreBundle/Controller/Admin/SettingsController.php

@ -53,6 +53,7 @@ class SettingsController extends SyliusSettingsController
$manager = $this->getSettingsManager();
$formList = [];
$keyword = $request->get('keyword');
$searchForm = $this->getSearchForm();
if ($searchForm->handleRequest($request)->isValid()) {
$values = $searchForm->getData();
@ -67,6 +68,7 @@ class SettingsController extends SyliusSettingsController
$keyword
);
$settings = [];
if (!empty($settingsFromKeyword)) {
foreach ($settingsFromKeyword as $category => $parameterList) {
$list = [];
@ -89,7 +91,6 @@ class SettingsController extends SyliusSettingsController
}
}
$schemas = $manager->getSchemas();
return $this->render(

Loading…
Cancel
Save