N°1038 Fatal error on transition with AttributeBlob or AttributeCaseLog

SVN:trunk[4907]
This commit is contained in:
Guillaume Lajarige
2017-09-13 15:59:06 +00:00
parent a477443c8d
commit 379a0bd785
2 changed files with 10 additions and 1 deletions

View File

@@ -191,8 +191,15 @@ class ormCaseLog {
public function __toString()
{
return $this->m_sLog;
if($this->IsEmpty()) return '';
return $this->m_sLog;
}
public function IsEmpty()
{
return ($this->m_sLog === null);
}
public function ClearModifiedFlag()
{

View File

@@ -51,6 +51,8 @@ class ormDocument
public function __toString()
{
if($this->IsEmpty()) return '';
return MyHelpers::beautifulstr($this->m_data, 100, true);
}