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...

SVN:trunk[410]
This commit is contained in:
Denis Flaven
2010-05-15 15:04:45 +00:00
parent fd7555e96b
commit d696e38902

View File

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