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

SVN:2.1.0[3551]
This commit is contained in:
Denis Flaven
2015-04-16 15:36:09 +00:00
parent fbc0456496
commit 48456082a9

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