Extending action classes (notifications): objects listed twice (in the base classes and leaf classes) in the notification page (actions tab).

SVN:trunk[4187]
This commit is contained in:
Romain Quetiez
2016-06-08 10:21:58 +00:00
parent c92b0ea8f7
commit 4c59d64025

View File

@@ -94,6 +94,7 @@ foreach($aActionClasses as $sActionClass)
$oP->add('<h2>'.MetaModel::GetName($sActionClass).'</h2>');
}
$oFilter = new DBObjectSearch($sActionClass);
$oFilter->AddCondition('finalclass', $sActionClass); // derived classes will be further processed
$aParams = array();
$oBlock = new DisplayBlock($oFilter, 'list', false, $aParams);
$oBlock->Display($oP, 'block_action_'.$iBlock, $aParams);