mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
This commit is contained in:
parent
c78159c8ac
commit
7e9d014eee
@ -56,6 +56,7 @@ class MultiFormSession extends DataObject {
|
|||||||
$steps = $this->FormSteps();
|
$steps = $this->FormSteps();
|
||||||
if($steps) foreach($steps as $step) {
|
if($steps) foreach($steps as $step) {
|
||||||
$steps->remove($step); // @TODO not sure if this is required (does delete() remove the relation too?)
|
$steps->remove($step); // @TODO not sure if this is required (does delete() remove the relation too?)
|
||||||
|
$step->destroy();
|
||||||
$step->delete();
|
$step->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user