N°2737 - Migrate table to DataTables plugin to be iso with the end-users portal - fix actions doesn't work after class change

This commit is contained in:
acognet
2021-01-12 09:40:28 +01:00
parent f0307afe2b
commit ccb6bb943c
4 changed files with 8 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ function DisplaySearchSet($oP, $oFilter, $bSearchForm = true, $sBaseClass = '',
//search block
$oBlockForm = null;
if ($bSearchForm) {
$aParams = array('open' => $bSearchFormOpen, 'table_id' => '1');
$aParams = array('open' => $bSearchFormOpen, 'table_id' => 'result_1');
if (!empty($sBaseClass)) {
$aParams['baseClass'] = $sBaseClass;
}
@@ -245,7 +245,7 @@ function DisplaySearchSet($oP, $oFilter, $bSearchForm = true, $sBaseClass = '',
$sTableId = 'result_1';
}
$aExtraParams['table_id'] = $sTableId;
$oUIBlockForm = $oBlockForm->GetDisplay($oP, 'search_1');
$oUIBlockForm = $oBlockForm->GetDisplay($oP, 'search_1',$aExtraParams);
//add result block
$oUIBlock = $oBlock->GetDisplay($oP, $sTableId);
$oUIBlock->AddCSSClasses("display_block sf_results_area");