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

SVN:2.1.1[3550]
This commit is contained in:
Denis Flaven
2015-04-16 15:35:09 +00:00
parent 88665da96e
commit 55da100f9c

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