fix: [Event:set_filter_value] Reset array indexing

pull/7234/head
mokaddem 2021-03-23 16:25:38 +01:00
parent 6ae72280b2
commit c9dafbf412
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 0 deletions

View File

@ -2996,6 +2996,8 @@ class Event extends AppModel
$tmpConditions['OR']['OR']['Attribute.value1'][2], // remove part2 from value1
$tmpConditions['OR']['OR']['Attribute.value2'][1] // remove part1 from value2
);
$tmpConditions['OR']['OR']['Attribute.value1'] = array_values($tmpConditions['OR']['OR']['Attribute.value1']);
$tmpConditions['OR']['OR']['Attribute.value2'] = array_values($tmpConditions['OR']['OR']['Attribute.value2']);
$conditions['AND'][] = $tmpConditions;
}
return $conditions;