N°3901 - Polishing: Menu - count

This commit is contained in:
acognet
2021-09-14 12:21:10 +02:00
parent ddedce1589
commit be81d1f6c0

View File

@@ -714,9 +714,10 @@ abstract class MenuNode
{
// Count the entries up to 99
$oSearch = DBSearch::FromOQL($sOQL);
$oSearch->SetShowObsoleteData(utils::ShowObsoleteData());
DBSearchHelper::AddContextFilter($oSearch);
$oSet = new DBObjectSet($oSearch);
$iCount = $oSet->CountWithLimit(99);
if ($iCount > 99) {