#415 Could not limit user on some organization (symptom: wrong queries... org_id does not exist...)

SVN:trunk[1319]
This commit is contained in:
Romain Quetiez
2011-07-01 15:08:38 +00:00
parent b2c5f183ec
commit 645b02b2d1
3 changed files with 15 additions and 6 deletions

View File

@@ -331,9 +331,10 @@ class DisplayBlock
$oAppContext = new ApplicationContext();
$sClass = $this->m_oFilter->GetClass();
$aFilterCodes = array_keys(MetaModel::GetClassFilterDefs($sClass));
$aCallSpec = array($sClass, 'MapContextParam');
foreach($oAppContext->GetNames() as $sContextParam)
{
eval("\$sParamCode = $sClass::MapContextParam('$sContextParam');"); //Map context parameter to the value/filter code depending on the class
$sParamCode = call_user_func($aCallSpec, $sContextParam); //Map context parameter to the value/filter code depending on the class
if (!is_null($sParamCode))
{
$sParamValue = $oAppContext->GetCurrentValue($sContextParam, null);