From 36149df584d84d1cb13b00cef93843c3b2415cf5 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 21 Nov 2013 16:30:58 +0000 Subject: [PATCH] Extensibility: make sure that checks implemented in an overload of CheckToWrite will be seen when parent::CheckToWrite is invoked at the end of the overload SVN:trunk[2978] --- core/dbobject.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index c2ca10ab3..1dbf8433a 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -973,7 +973,6 @@ abstract class DBObject { $this->DoComputeValues(); - $this->m_aCheckIssues = array(); $aChanges = $this->ListChanges(); foreach(MetaModel::ListAttributeDefs(get_class($this)) as $sAttCode=>$oAttDef) @@ -1028,6 +1027,8 @@ abstract class DBObject } if (is_null($this->m_bCheckStatus)) { + $this->m_aCheckIssues = array(); + $oKPI = new ExecutionKPI(); $this->DoCheckToWrite(); $oKPI->ComputeStats('CheckToWrite', get_class($this));