From 055d50e66d2b9c3a47e7dd38550a4458be2245da Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Fri, 20 Sep 2024 02:23:08 +0000 Subject: [PATCH] * [bug] fix bug. --- module/pivot/model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/pivot/model.php b/module/pivot/model.php index cfc0cdb7b6..6a0e4c1110 100644 --- a/module/pivot/model.php +++ b/module/pivot/model.php @@ -86,6 +86,11 @@ class pivotModel extends model $filters = json_decode($pivot->filters, true); $pivot->filters = $this->setFilterDefault($filters, $processDateVar); } + else + { + $pivot->filters = array(); + } + $this->processPivot($pivot); if(isset($pivot->stage) && $pivot->stage == 'published' && $this->app->methodName == 'preview') $this->processFieldSettings($pivot);