From 6c7ca024ef4e91d785eb8544ab214f74babdb99b Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 8 May 2026 15:27:00 +0200 Subject: [PATCH] WIP Correcting typos --- sources/Controller/AjaxRenderController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/Controller/AjaxRenderController.php b/sources/Controller/AjaxRenderController.php index df13f5bb25..97a06dd0ed 100644 --- a/sources/Controller/AjaxRenderController.php +++ b/sources/Controller/AjaxRenderController.php @@ -501,9 +501,9 @@ class AjaxRenderController $aColumnsLoad[$sAlias][] = $sAttCode; } - // Tree grouping: ensure the parent key attribute is loaded so JS can build parent-child links + // Tree grouping: ensure the parent key attribute is loaded so the frontend can build parent-child links $sTreeGroupingAttr = $extraParams['tree_grouping_attr'] ?? ''; - if ($sTreeGroupingAttr !== '' + if (utils::IsNotNullOrEmptyString($sTreeGroupingAttr) && MetaModel::IsValidAttCode($sClassName, $sTreeGroupingAttr) && !in_array($sTreeGroupingAttr, $aColumnsLoad[$sAlias])) { $aColumnsLoad[$sAlias][] = $sTreeGroupingAttr;