(Retrofit from trunk) N°1038 Fatal error on transition with AttributeBlob or AttributeCaseLog

SVN:2.4[4908]
This commit is contained in:
Guillaume Lajarige
2017-09-13 16:09:02 +00:00
parent 361cca465a
commit 66ae89e91d
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);
}