diff --git a/CHANGELOG.md b/CHANGELOG.md index 637d9d1..bba106d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/services/Revalidator.php b/src/services/Revalidator.php index f9cd7ac..2b70ba2 100644 --- a/src/services/Revalidator.php +++ b/src/services/Revalidator.php @@ -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); }