N°3648 - Fix Bulk modify

This commit is contained in:
Eric
2021-03-18 11:41:57 +01:00
parent 5869591167
commit 118d6ff837
2 changed files with 3 additions and 3 deletions

View File

@@ -281,7 +281,7 @@ function DisplayMultipleSelectionForm(WebPage $oP, DBSearch $oFilter, string $sN
//by default all the elements are selected
$aExtraParams['selectionMode'] = 'negative';
$oForm->AddSubBlock($oDisplayBlock->GetDisplay($oP, 1, $aExtraParams));
$oForm->AddSubBlock(ButtonUIBlockFactory::MakeNeutral(Dict::S('UI:Button:Cancel'), 'cancel')->SetOnClickJsCode('window.history.back()'));
$oForm->AddSubBlock(ButtonUIBlockFactory::MakeForCancel(Dict::S('UI:Button:Cancel'), 'cancel')->SetOnClickJsCode('window.history.back()'));
$oForm->AddSubBlock(ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('UI:Button:Next'), 'next', Dict::S('UI:Button:Next'), true));
$oP->AddUiBlock($oForm);

View File

@@ -51,8 +51,8 @@ class DataTable extends UIContentBlock
public function __construct(?string $sId = null)
{
parent::__construct($sId);
//$this->AddDeferredBlock(new DataTableConfig($this));
$this->AddSubBlock(new DataTableConfig($this));
// This block contains a form, so it has to be added later in the flow
$this->AddDeferredBlock(new DataTableConfig($this));
$this->aDisplayColumns = [];
$this->aOptions = [];
$this->aResultColumns = [];