Skip to content

Commit b37e916

Browse files
committed
Merge branch 'release/7.0.2'
2 parents 174800b + e21d8a2 commit b37e916

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v7.0.2
2+
## 10/05/2022
3+
4+
1. [](#bugfix)
5+
* Fix for modular form definitions at root-level (useful for storing shared forms)
6+
17
# v7.0.1
28
## 09/20/2022
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Form
22
slug: form
33
type: plugin
4-
version: 7.0.1
4+
version: 7.0.2
55
description: Enables forms handling and processing
66
icon: check-square
77
author:

form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ public function onFormValidationError(Event $event): void
797797
*/
798798
public function addFormDefinition(PageInterface $page, string $name, array $form): void
799799
{
800-
$route = $page->home() ? '/' : $page->route();
800+
$route = ($page->home() ? '/' : $page->route()) ?? '/';
801801

802802
if (!isset($this->forms[$route][$name])) {
803803
$form['_page_routable'] = !$page->isModule();

0 commit comments

Comments
 (0)