Bug fix: prevent a crash of the web services when trying to log a non scalar paramater value...

SVN:trunk[3549]
This commit is contained in:
Denis Flaven
2015-04-16 15:33:21 +00:00
parent ff1514dc75
commit 7176d5a19c

View File

@@ -783,6 +783,10 @@ class RestUtils
{
$realValue = self::MakeValue($sClass, $sAttCode, $value);
$oSearch->AddCondition($sAttCode, $realValue, '=');
if (is_object($value) || is_array($value))
{
$value = json_encode($value);
}
$aCriteriaReport[] = "$sAttCode: $value ($realValue)";
}
$oSet = new DBObjectSet($oSearch);