Skip to content

Commit

Permalink
Merge branch 'release/2.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Sep 15, 2016
2 parents 8e4502d + 834d964 commit b4b778d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.0.5
## 09/15/2016

1. [](#bugfix)
* Fix passing updating the header through event, no need for return value

# v2.0.4
## 09/15/2016

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Form
version: 2.0.4
version: 2.0.5
description: Enables the forms handling
icon: check-square
author:
Expand Down
3 changes: 1 addition & 2 deletions form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit b4b778d

Please sign in to comment.