From b79c0d7cd64990dd416a2c3d38c929e8f3f2c843 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 15 Sep 2016 17:44:30 +0200 Subject: [PATCH 1/3] Fix passing updating the header through event, no need for return value --- form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/form.php b/form.php index 1fe9bb23..985f3343 100644 --- a/form.php +++ b/form.php @@ -105,8 +105,7 @@ public function onPageProcessed(Event $e) $header = $page->header(); //call event to allow filling the page header form dynamically (e.g. use case: Comments plugin) - $event = $this->grav->fireEvent('onFormPageHeaderProcessed', new Event(['header' => $header])); - $header = $event->header; + $this->grav->fireEvent('onFormPageHeaderProcessed', new Event(['header' => $header])); if ((isset($header->forms) && is_array($header->forms)) || (isset($header->form) && is_array($header->form))) { From dcdcf2ab7e3495bd70de605c601a2d790ffad143 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 15 Sep 2016 18:09:39 +0200 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 985140b0..40636adc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v2.0.x +## 09/15/2016 + +1. [](#bugfix) + * Fix passing updating the header through event, no need for return value + # v2.0.4 ## 09/15/2016 From 834d964c33fb8732ed9eb1379f0280b6eaa70064 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 15 Sep 2016 15:02:51 -0600 Subject: [PATCH 3/3] version update --- CHANGELOG.md | 2 +- blueprints.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40636adc..552aabc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# v2.0.x +# v2.0.5 ## 09/15/2016 1. [](#bugfix) diff --git a/blueprints.yaml b/blueprints.yaml index 55611654..0ab31b7d 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Form -version: 2.0.4 +version: 2.0.5 description: Enables the forms handling icon: check-square author: