Advanced Search: Numeric fields and dates

SVN:b1162[5492]
This commit is contained in:
Eric Espié
2018-03-22 16:28:54 +00:00
parent 2d9041c045
commit 73e1e3422d
3 changed files with 44 additions and 26 deletions

View File

@@ -301,11 +301,11 @@ class CriterionConversionTest extends ItopDataTestCase
*/
function testOqlToForSearchToOql($sOQL)
{
$this->debug($sOQL);
$oSearchForm = new SearchForm();
$oSearch = \DBSearch::FromOQL($sOQL);
$aFields = $oSearchForm->GetFields(new \DBObjectSet($oSearch));
$aCriterion = $oSearchForm->GetCriterion($oSearch, $aFields);
$this->debug($sOQL);
$aAndCriterion = $aCriterion['or'][0]['and'];