From 465ed58471f4bb4681afbdb9277f1aed3432bdcf Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 22 Oct 2021 10:35:08 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04319=20Backup=20page=20datatable=20no=20?= =?UTF-8?q?longer=20grow=20off=20limits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-backup/status.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/datamodels/2.x/itop-backup/status.php b/datamodels/2.x/itop-backup/status.php index 8df06c84d5..e9ae60bf20 100644 --- a/datamodels/2.x/itop-backup/status.php +++ b/datamodels/2.x/itop-backup/status.php @@ -44,10 +44,12 @@ function GenerateBackupsList(string $sListTitleDictKey, string $sNoRecordDictKey $oFieldsetForList = new FieldSet(Dict::S($sListTitleDictKey)); if (count($aListData) > 0) { + $oTable = DataTableUIBlockFactory::MakeForStaticData('', $aListConfig, array_reverse($aListData), utils::Sanitize(uniqid('form_', true), '', utils::ENUM_SANITIZATION_FILTER_ELEMENT_IDENTIFIER)); + $oTablePanel = PanelUIBlockFactory::MakeForInformation(''); - $oTablePanel->AddSubBlock( - DataTableUIBlockFactory::MakeForForm(utils::Sanitize(uniqid('form_', true), '', utils::ENUM_SANITIZATION_FILTER_ELEMENT_IDENTIFIER), $aListConfig, array_reverse($aListData)) - ); + $oTablePanel->AddSubBlock($oTable); + $oTablePanel->AddCSSClass('ibo-datatable-panel'); + $oFieldsetForList->AddSubBlock($oTablePanel); } else { $oFieldsetForList->AddSubBlock(