mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N°2730 - Cannot log callstack with callback into EventIssue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user