Przeglądaj źródła

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4187 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 lat temu
rodzic
commit
4cc6dc1be8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      pages/notifications.php

+ 1 - 0
pages/notifications.php

@@ -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);