N°2730 - Cannot log callstack with callback into EventIssue

This commit is contained in:
bruno DA SILVA
2020-01-22 17:35:28 +01:00
parent ba8a2c1b15
commit d6ca08efb8

View File

@@ -9459,6 +9459,14 @@ class AttributeTable extends AttributeDBField
{
$value = @unserialize($aCols[$sPrefix.'']);
if ($value === false)
{
$value = @json_decode($aCols[$sPrefix.''], true);
if (is_null($value))
{
$value = false;
}
}
if ($value === false)
{
$value = $this->MakeRealValue($aCols[$sPrefix.''], null);
}
@@ -9473,7 +9481,15 @@ class AttributeTable extends AttributeDBField
public function GetSQLValues($value)
{
$aValues = array();
$aValues[$this->Get("sql")] = serialize($value);
try
{
$sSerializedValue = serialize($value);
}
catch (Exception $e)
{
$sSerializedValue = json_encode($value);
}
$aValues[$this->Get("sql")] = $sSerializedValue;
return $aValues;
}