Reverted r70810 which didn't have a commit message

This commit is contained in:
Sean Harvey 2009-01-27 10:45:46 +00:00
parent 7e9d014eee
commit 70b7e95c81

View File

@ -55,8 +55,7 @@ class MultiFormSession extends DataObject {
// delete dependent form steps and relation
$steps = $this->FormSteps();
if($steps) foreach($steps as $step) {
$steps->remove($step); // @TODO not sure if this is required (does delete() remove the relation too?)
$step->destroy();
$steps->remove($step); // @TODO not sure if this is required (does delete() remove the relation too?)
$step->delete();
}