Skip to content

Commit

Permalink
Update Subform.php
Browse files Browse the repository at this point in the history
Removed spaces
  • Loading branch information
obuisard committed Sep 11, 2023
1 parent 83ffc22 commit 905c693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/fields/subform/src/Extension/Subform.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,14 @@ public function onCustomFieldsBeforeSave($field)

$subform_rows[$key]['field' . $subfield->id] = $subfield->rawvalue;

if (empty($showOn)) {
if (empty($showOn)) {
continue;
}

if (!FieldsHelper::matchShowon($showOn, $row_subfields)) {
unset($subform_rows[$key]['field' . $subfield->id]);
}
}
}
}

$field->rawvalue = json_encode($subform_rows);
Expand Down

0 comments on commit 905c693

Please sign in to comment.