Merge pull request #9056 from JakubOnderka/searchvalue-fix

fix: [internal] Warning when searchvalue is not defined
new_widgets
Jakub Onderka 2023-05-03 18:34:29 +02:00 committed by GitHub
commit dc828a223a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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],