From 1f5dabf8f624f098f51f4f073489dfcb6cfd1151 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 21 Sep 2021 13:36:11 +0200 Subject: [PATCH] Code conventions --- .../DataTable/DataTableUIBlockFactory.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sources/application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php b/sources/application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php index 2f6acd92b..91d7efad9 100644 --- a/sources/application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php +++ b/sources/application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php @@ -371,9 +371,10 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory } else { $oAttDef = MetaModel::GetAttributeDef($sClassName, $sAttCode); if ($oAttDef instanceof \AttributeCaseLog) { - // Add JS file for display caselog - $sCollapsibleSection = new CollapsibleSection(''); - $oDataTable->AddMultipleJsFilesRelPaths($sCollapsibleSection->GetJsFilesUrlRecursively()); + // Add JS files for display caselog + // Dummy collapsible section created in order to get JS files + $oCollapsibleSection = new CollapsibleSection(''); + $oDataTable->AddMultipleJsFilesRelPaths($oCollapsibleSection->GetJsFilesUrlRecursively()); } $sAttDefClass = get_class($oAttDef); $sAttLabel = $oAttDef->GetLabel(); @@ -620,7 +621,7 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory $oAttDef = MetaModel::GetAttributeDef($sClassName, $sAttCode); if ($oAttDef instanceof \AttributeCaseLog) { // Removed from the display list - //collapsible Section create in order to get JS files + // Dummy collapsible section created in order to get JS files $sCollapsibleSection = new CollapsibleSection(''); $oDataTable->AddMultipleJsFilesRelPaths($sCollapsibleSection->GetJsFilesUrlRecursively()); } @@ -768,9 +769,9 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory $oAttDef = MetaModel::GetAttributeDef($sClassName, $sAttCode); if ($oAttDef instanceof \AttributeCaseLog) { // Get JS files - //collapsible Section create in order to get JS files - $sCollapsibleSection = new CollapsibleSection(''); - $aJsFiles = array_merge($aJsFiles, $sCollapsibleSection->GetJsFilesUrlRecursively()); + // Dummy collapsible section created in order to get JS files + $oCollapsibleSection = new CollapsibleSection(''); + $aJsFiles = array_merge($aJsFiles, $oCollapsibleSection->GetJsFilesUrlRecursively()); } $sAttDefClass = get_class($oAttDef); $sAttLabel = MetaModel::GetLabel($sClassName, $sAttCode);