mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
Bug of month: make sure that GetFilter returns a usable filter (i.e. with the parameters)
SVN:trunk[2326]
This commit is contained in:
@@ -775,7 +775,15 @@ class utils
|
||||
{
|
||||
foreach (MetaModel::EnumPlugins('iPopupMenuExtension') as $oExtensionInstance)
|
||||
{
|
||||
foreach($oExtensionInstance->EnumItems($iMenuId, $param) as $oMenuItem)
|
||||
if (is_object($param))
|
||||
{
|
||||
$tmpParam = clone $param; // In case the parameter is an object, clone it to prevent alterations
|
||||
}
|
||||
else
|
||||
{
|
||||
$tmpParam = $param;
|
||||
}
|
||||
foreach($oExtensionInstance->EnumItems($iMenuId, $tmpParam) as $oMenuItem)
|
||||
{
|
||||
if (is_object($oMenuItem))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user