N°870 - Fix the display of archived objects in the dashlets when activating/deactivating the archive mode.

SVN:trunk[5226]
This commit is contained in:
Eric Espié
2018-01-10 13:39:41 +00:00
parent 3f2e20fe44
commit 95941f4dc5

View File

@@ -49,7 +49,14 @@ abstract class DBSearch
public function __construct()
{
$this->Init();
}
protected function Init()
{
// Set the obsolete and archive modes to the default ones
$this->m_bArchiveMode = utils::IsArchiveMode();
$this->m_bShowObsoleteData = true;
}
/**
@@ -357,6 +364,10 @@ abstract class DBSearch
{
$oResultFilter->SetInternalParams($aParams);
}
// Set the default fields
$oResultFilter->Init();
return $oResultFilter;
}