From 34c80aa6e072bc8b9af0997d1b67bd34dab55afd Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 8 Jul 2024 17:23:27 +0800 Subject: [PATCH] * [refac] unset pivot config group2 empty. --- lib/pivotstate/pivotstate.class.php | 5 ----- module/bi/config/pivots.php | 1 - 2 files changed, 6 deletions(-) diff --git a/lib/pivotstate/pivotstate.class.php b/lib/pivotstate/pivotstate.class.php index 5a8eaa5c07..396b96f40c 100644 --- a/lib/pivotstate/pivotstate.class.php +++ b/lib/pivotstate/pivotstate.class.php @@ -598,11 +598,6 @@ class pivotState $keys = array_keys($settings); foreach($keys as $key) if(strpos($key, 'group') === 0) $groups[$key] = $settings[$key]; - if(count($groups) > 1) - { - foreach($groups as $key => $group) if(empty($group)) unset($groups[$key]); - } - return $groups; } diff --git a/module/bi/config/pivots.php b/module/bi/config/pivots.php index 97bf86b33c..49b787b753 100644 --- a/module/bi/config/pivots.php +++ b/module/bi/config/pivots.php @@ -1657,7 +1657,6 @@ EOT, 'settings' => array ( 'group1' => 'name', - 'group2' => '', 'columnTotal' => 'sum', 'columns' => array (