From 16dcf8a2761442906a5b8af5a8fb3410aa7a7386 Mon Sep 17 00:00:00 2001 From: yeneastgate Date: Tue, 16 Jan 2024 14:13:01 +0700 Subject: [PATCH] 40398 update phpstan --- plugin/Field/OutputFields.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/Field/OutputFields.php b/plugin/Field/OutputFields.php index b5f666c7b..64713925c 100644 --- a/plugin/Field/OutputFields.php +++ b/plugin/Field/OutputFields.php @@ -76,8 +76,9 @@ public function getVisibleFilterableFields( $allFields = array_merge($fieldsArray, array_keys($geoFields)); $valuesDefault = array_map(function($field) use ($geoFields, $pInputVariableReader) { - $value = $pInputVariableReader->getFieldValueFormatted($field); - return $value === false ? false : $value; + $fieldValue = $pInputVariableReader->getFieldValueFormatted($field); + $geoFieldValue = $geoFields[$field] ?? null; + return $fieldValue === false ? false : ($fieldValue !== null ? true : ($geoFieldValue !== null ? true : null)); }, $allFields); $resultDefault = array_combine($allFields, $valuesDefault);