Retrofit from trunk

DBObject->GetOriginal() hardening (now support attributes not set: for example sla_tto_passed for UserRequest until it is closed)
[from revision 5932]

SVN:2.5[5942]
This commit is contained in:
Eric Espié
2018-07-17 12:19:26 +00:00
parent 6e9fcb81f0
commit e184eb6aae
3 changed files with 33 additions and 6 deletions

View File

@@ -568,7 +568,8 @@ abstract class DBObject implements iDisplay
{
throw new CoreException("Unknown attribute code '$sAttCode' for the class ".get_class($this));
}
return $this->m_aOrigValues[$sAttCode];
$aOrigValues = $this->m_aOrigValues;
return isset($aOrigValues[$sAttCode]) ? $aOrigValues[$sAttCode] : null;
}
/**