Fixed issue on deletion: was not recursive, leading to data integrity issues

SVN:trunk[815]
This commit is contained in:
Romain Quetiez
2010-09-10 18:49:48 +00:00
parent f120e21e00
commit dfb1ae83c7
2 changed files with 24 additions and 7 deletions

View File

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