mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
Merge branch 'support/3.1' into develop
This commit is contained in:
@@ -612,9 +612,12 @@ abstract class DBObject implements iDisplay
|
|||||||
public function Set($sAttCode, $value)
|
public function Set($sAttCode, $value)
|
||||||
{
|
{
|
||||||
if (!utils::StartsWith(get_class($this), 'CMDBChange') && $this->GetKey() > 0) {
|
if (!utils::StartsWith(get_class($this), 'CMDBChange') && $this->GetKey() > 0) {
|
||||||
// not all the values have __to_string() so print_r is sed and preferred over var_export for the handling or circular references
|
if (is_object($value) || is_array($value)) {
|
||||||
|
$this->LogCRUDEnter(__METHOD__, "$sAttCode => object or array");
|
||||||
|
} else {
|
||||||
$this->LogCRUDEnter(__METHOD__, "$sAttCode => ".print_r($value, true));
|
$this->LogCRUDEnter(__METHOD__, "$sAttCode => ".print_r($value, true));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$sMessage = $this->IsReadOnly();
|
$sMessage = $this->IsReadOnly();
|
||||||
if ($sMessage !== false) {
|
if ($sMessage !== false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user