Просмотр исходного кода

Fixed regression in 2.0: plugins ONDBInsert and ONDBUpdate where not called anymore

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2330 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 лет назад
Родитель
Сommit
0d4ce21f6a
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      application/cmdbabstract.class.inc.php

+ 4 - 4
application/cmdbabstract.class.inc.php

@@ -2596,9 +2596,9 @@ EOF
 		return $aErrors;
 	}
 
-	protected function DBInsertTracked_Internal($bDoNotReload = false)
+	public function DBInsertNoReload()
 	{
-		$res = parent::DBInsertTracked_Internal($bDoNotReload);
+		$res = parent::DBInsertNoReload();
 
 		// Invoke extensions after insertion (the object must exist, have an id, etc.)
 		foreach (MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance)
@@ -2621,9 +2621,9 @@ EOF
 		return $oNewObj;
 	}
 
-	protected function DBUpdateTracked_Internal()
+	public function DBUpdate()
 	{
-		$res = parent::DBUpdateTracked_Internal();
+		$res = parent::DBUpdate();
 
 		// Invoke extensions after the update (could be before)
 		foreach (MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance)