fix: [internal] Warning when searchvalue is not defined

pull/9056/head
Jakub Onderka 2023-05-03 18:15:40 +02:00
parent ce3a8ec9b7
commit 9e4c67b900
1 changed files with 2 additions and 2 deletions

View File

@ -3024,8 +3024,8 @@ class AttributesController extends AppController
private function __setIndexFilterConditions()
{
// search by attribute value
if ($this->params['named']['searchvalue']) {
$v = $this->params['named']['searchvalue'];
if (isset($this->request->params['named']['searchvalue'])) {
$v = $this->request->params['named']['searchvalue'];
$this->paginate['conditions']['AND'][] = [
'OR' => [
['Attribute.value1' => $v],