mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Fixed issue on deletion: was not recursive, leading to data integrity issues
SVN:trunk[815]
This commit is contained in:
@@ -38,8 +38,10 @@ function DeleteObjects(WebPage $oP, $sClass, $aObjects, $bDeleteConfirmed)
|
||||
{
|
||||
// Evaluate the impact on the DB integrity
|
||||
//
|
||||
list ($aDeletedObjs, $aResetedObjs) = $oObj->GetDeletionScheme();
|
||||
|
||||
$aDeletedObjs = array();
|
||||
$aResetedObjs = array();
|
||||
$oObj->GetDeletionScheme($aDeletedObjs, $aResetedObjs);
|
||||
|
||||
// Evaluate feasibility (user access control)
|
||||
//
|
||||
foreach ($aDeletedObjs as $sRemoteClass => $aDeletes)
|
||||
|
||||
Reference in New Issue
Block a user