mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
#304 Fixed OQL issue (regression when using time intervals)
SVN:trunk[922]
This commit is contained in:
@@ -738,6 +738,10 @@ class DBObjectSearch
|
||||
}
|
||||
return new FunctionExpression($oExpression->GetVerb(), $aArgs);
|
||||
}
|
||||
elseif ($oExpression instanceof IntervalOqlExpression)
|
||||
{
|
||||
return new IntervalExpression($oExpression->GetValue(), $oExpression->GetUnit());
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new CoreException('Unknown expression type', array('class'=>get_class($oExpression), 'query'=>$sQuery));
|
||||
|
||||
Reference in New Issue
Block a user