N°4529 - Object list: Count in header not updated when refreshing through the icon

This commit is contained in:
acognet
2022-01-25 08:54:40 +01:00
parent 1f42f897d8
commit e8e6ceb29e
4 changed files with 14 additions and 6 deletions

View File

@@ -157,11 +157,11 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
}
if ($oDataTable->GetOption("select_mode") == 'multiple')
{
$sSubTitle =Dict::Format('UI:Pagination:HeaderSelection', $iCount, '<span class="ibo-datatable--selected-count">0</span>');
$sSubTitle =Dict::Format('UI:Pagination:HeaderSelection', '<span class="ibo-datatable--result-count">'.$iCount.'</span>', '<span class="ibo-datatable--selected-count">0</span>');
}
else
{
$sSubTitle = Dict::Format('UI:Pagination:HeaderNoSelection', $iCount);
$sSubTitle = Dict::Format('UI:Pagination:HeaderNoSelection', '<span class="ibo-datatable--result-count">'.$iCount.'</span>');
}
$oContainer->AddSubTitleBlock(new Html($sSubTitle));
if(isset($aExtraParams["panel_icon"]) && strlen($aExtraParams["panel_icon"]) > 0){