Browse Source

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2978 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 years ago
parent
commit
8b355b150a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/dbobject.class.php

+ 2 - 1
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));