Browse Source

Bug fix: (Consequence of the fix of Trac #112) Now all attributes are can be used for filtering, one cannot add them automatically to the filter... especially for history block where it makes absolutely no sense...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@410 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 năm trước cách đây
mục cha
commit
a227587c83
1 tập tin đã thay đổi với 0 bổ sung9 xóa
  1. 0 9
      application/displayblock.class.inc.php

+ 0 - 9
application/displayblock.class.inc.php

@@ -771,15 +771,6 @@ class HistoryBlock extends DisplayBlock
 	public function GetRenderContent(WebPage $oPage, $aExtraParams = array())
 	{
 		$sHtml = '';
-		// Add the extra params into the filter if they make sense for such a filter
-		$aFilterCodes = array_keys(MetaModel::GetClassFilterDefs($this->m_oFilter->GetClass()));
-		foreach($aFilterCodes as $sFilterCode)
-		{
-			if (isset($aExtraParams[$sFilterCode]))
-			{
-				$this->m_oFilter->AddCondition($sFilterCode, $aExtraParams[$sFilterCode]); // Use the default 'loose' operator
-			}
-		}
 		$oSet = new CMDBObjectSet($this->m_oFilter, array('date'=>false));
 		$sHtml .= "<!-- filter: ".($this->m_oFilter->ToOQL())."-->\n";
 		switch($this->m_sStyle)