From 1e3771540fb8954f2a25722b99734f6ae507a0bc Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Thu, 18 Jan 2024 10:29:12 +0800 Subject: [PATCH] * Fix bug of use array key for an object. --- module/screen/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/screen/model.php b/module/screen/model.php index 050fb07918..7cb62d641f 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -297,7 +297,7 @@ class screenModel extends model if(count($oldFilters) != count($latestFilters)) $filterChanged = true; foreach($oldFilters as $index => $oldFilter) { - if($oldFilter['field'] != $latestFilters[$index]['field']) $filterChanged = true; + if($oldFilter->field != $latestFilters[$index]->field) $filterChanged = true; } if($filterChanged) $component->chartConfig->filters = $latestFilters;