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.
pull/4053/head
mokaddem 2019-01-25 09:34:55 +01:00
parent cbb3451d2b
commit b64d5c82a7
1 changed files with 1 additions and 1 deletions

View File

@ -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,