mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Fixed regression in 2.0: plugins ONDBInsert and ONDBUpdate where not called anymore
SVN:trunk[2330]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user