From 6625964930f870ecda37cdaf5eb5c7053e22818e Mon Sep 17 00:00:00 2001 From: Dmitrij Vladimirov <47441164+Frisle@users.noreply.github.com> Date: Wed, 8 Oct 2025 12:52:05 +0500 Subject: [PATCH] FIX: when axis with "agg" type received a children object --- MDX2JSON/ResultSet.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MDX2JSON/ResultSet.cls b/MDX2JSON/ResultSet.cls index 4fe3ba8..210c64f 100644 --- a/MDX2JSON/ResultSet.cls +++ b/MDX2JSON/ResultSet.cls @@ -130,7 +130,7 @@ Method ProcessOneAxisCell(CubeIndex, AxisKey, CubeName, QueryKey, AxisNumber, No set cell.vis = $LG(tNode,2) // visibility helper - does not help (apperently it shows if the cell is the lowest level) // now we process cell children, if any exist - if ($D($$$DeepSeeAxisGLVN(CubeIndex, AxisKey, "axes", Node, "ch")) = 10) { + if ($D($$$DeepSeeAxisGLVN(CubeIndex, AxisKey, "axes", Node, "ch")) = 10) && ($LG(tNode, 1)'="agg") { set cell.children = $$$NewDynObjList set key = $O($$$DeepSeeAxisGLVN(CubeIndex, AxisKey, "axes", Node, "ch", "")) while (key'="") {