Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr authored Sep 6, 2023
1 parent 3d59955 commit 0d7eb7b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# MultiForm Module

[![Build Status](https://travis-ci.com/silverstripe/silverstripe-multiform.svg?branch=master)](https://travis-ci.org/silverstripe/silverstripe-multiform)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/silverstripe/silverstripe-multiform.svg)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-multiform/?branch=master)
[![Code Coverage](https://img.shields.io/codecov/c/github/silverstripe/silverstripe-multiform.svg)](https://codecov.io/gh/silverstripe/silverstripe-multiform)

Expand Down Expand Up @@ -383,14 +382,13 @@ class SurveyForm extends MultiForm
{
parent::finish($data, $form);

$steps = DataObject::get(
MultiFormStep::class,
"SessionID = {$this->session->ID}"
);
$steps = MultiFormStep::get()->filter([
"SessionID" => $this->session->ID
]);

if ($steps) {
foreach ($steps as $step) {
if($step->ClassName == PersonalDetailsStep::class) {
if ($step->ClassName == PersonalDetailsStep::class) {
$member = Member::create();
$data = $step->loadData();

Expand Down

0 comments on commit 0d7eb7b

Please sign in to comment.