From b64d5c82a74a3c6780c954faa19c90b8554e8dd3 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Fri, 25 Jan 2019 09:34:55 +0100 Subject: [PATCH] fix: [attribute] Prevent undefined index on tag filtering. As tags are popped from the attribute scope first, they will not be available in the event scope. --- app/Model/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index 6c9d754ca..1792ee6fd 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -3796,7 +3796,7 @@ class Attribute extends AppModel ); foreach ($params as $param => $paramData) { foreach ($simple_params as $scope => $simple_param_scoped) { - if (isset($simple_param_scoped[$param]) && $params[$param] !== false) { + if (isset($simple_param_scoped[$param]) && isset($params[$param]) && $params[$param] !== false) { $options = array( 'filter' => $param, 'scope' => $scope,