Bläddra i källkod

#304 Fixed OQL issue (regression when using time intervals)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@922 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 år sedan
förälder
incheckning
2b9d17f55d
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      core/dbobjectsearch.class.php

+ 4 - 0
core/dbobjectsearch.class.php

@@ -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));