mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 17:14:20 +01:00
DBSearch: Fix serialization rework (missing internal parameters)
This commit is contained in:
@@ -751,7 +751,7 @@ class DisplayBlock
|
||||
$sClass = $this->m_oFilter->GetClass();
|
||||
$oAppContext = new ApplicationContext();
|
||||
$bContextFilter = isset($aExtraParams['context_filter']) ? isset($aExtraParams['context_filter']) != 0 : false;
|
||||
if ($bContextFilter)
|
||||
if ($bContextFilter && is_null($this->m_oSet))
|
||||
{
|
||||
foreach($oAppContext->GetNames() as $sFilterCode)
|
||||
{
|
||||
|
||||
@@ -246,10 +246,12 @@ abstract class DBSearch
|
||||
*/
|
||||
abstract public function ApplyParameters($aArgs);
|
||||
|
||||
public function serialize($bDevelopParams = false, $aContextParams = null)
|
||||
public function serialize($bDevelopParams = false, $aContextParams = array())
|
||||
{
|
||||
$aQueryParams = $this->GetQueryParams();
|
||||
|
||||
$aContextParams = array_merge($this->GetInternalParams(), $aContextParams);
|
||||
|
||||
foreach($aQueryParams as $sParam => $sValue)
|
||||
{
|
||||
if (isset($aContextParams[$sParam]))
|
||||
|
||||
Reference in New Issue
Block a user