Skip to content

Commit

Permalink
Merge branch 'release/7.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 5, 2022
2 parents 174800b + e21d8a2 commit b37e916
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v7.0.2
## 10/05/2022

1. [](#bugfix)
* Fix for modular form definitions at root-level (useful for storing shared forms)

# v7.0.1
## 09/20/2022

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Form
slug: form
type: plugin
version: 7.0.1
version: 7.0.2
description: Enables forms handling and processing
icon: check-square
author:
Expand Down
2 changes: 1 addition & 1 deletion form.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ public function onFormValidationError(Event $event): void
*/
public function addFormDefinition(PageInterface $page, string $name, array $form): void
{
$route = $page->home() ? '/' : $page->route();
$route = ($page->home() ? '/' : $page->route()) ?? '/';

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

0 comments on commit b37e916

Please sign in to comment.