#767 JSON/REST Reconciliations made on loose criteria (forced to strict equality, no way to specify a loose criteria)

SVN:trunk[2860]
This commit is contained in:
Romain Quetiez
2013-09-24 13:38:49 +00:00
parent ea36d6b147
commit 8d068b6a93

View File

@@ -759,7 +759,7 @@ class RestUtils
foreach ($oCriteria as $sAttCode => $value)
{
$realValue = self::MakeValue($sClass, $sAttCode, $value);
$oSearch->AddCondition($sAttCode, $realValue);
$oSearch->AddCondition($sAttCode, $realValue, '=');
$aCriteriaReport[] = "$sAttCode: $value ($realValue)";
}
$oSet = new DBObjectSet($oSearch);
@@ -856,7 +856,7 @@ class RestUtils
foreach ($key as $sAttCode => $value)
{
$realValue = self::MakeValue($sClass, $sAttCode, $value);
$oSearch->AddCondition($sAttCode, $realValue);
$oSearch->AddCondition($sAttCode, $realValue, '=');
}
}
elseif (is_numeric($key))