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]
This commit is contained in:
Romain Quetiez
2013-11-21 16:30:58 +00:00
parent e48716753d
commit 36149df584

View File

@@ -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));