Skip to content

Commit

Permalink
Fix issue creating new sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Jul 21, 2023
1 parent 7aefa1a commit 2136088
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.1.1 - 2023-07-21
### Fixed
- Fix issue creating new sections

## 4.1.0 - 2023-04-21
### Added
- Add SEO install / field create
Expand Down
2 changes: 1 addition & 1 deletion src/services/Revalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function onAfterRenderTemplate (TemplateEvent $event): void

public function onBeforeSectionSave (SectionEvent $event): void
{
if (!empty($event->section))
if (!empty($event->section) && !empty($event->section->uid))
$this->saveAdditionalURIs($event->section->uid);
}

Expand Down

0 comments on commit 2136088

Please sign in to comment.