mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-12 04:24:12 +01:00
Retrofit from trunk
N°1246 - Fix Obsolete data visible in dependency graph. * Fix a wrong transient OQL expression cache introduced in [4943]. [from revision 5257] SVN:2.4[5259]
This commit is contained in:
@@ -85,11 +85,11 @@ abstract class Expression
|
||||
static $aCache = array();
|
||||
if (array_key_exists($sConditionExpr, $aCache))
|
||||
{
|
||||
return $aCache[$sConditionExpr];
|
||||
return unserialize($aCache[$sConditionExpr]);
|
||||
}
|
||||
$oOql = new OqlInterpreter($sConditionExpr);
|
||||
$oExpression = $oOql->ParseExpression();
|
||||
$aCache[$sConditionExpr] = $oExpression;
|
||||
$aCache[$sConditionExpr] = serialize($oExpression);
|
||||
|
||||
return $oExpression;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user