Skip to content

Commit

Permalink
Merge pull request #20 from m038/master
Browse files Browse the repository at this point in the history
Fixes issue with config object not being created on install
  • Loading branch information
m038 committed Jan 22, 2016
2 parents 90c8926 + 877a8ea commit 57a8f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions EventListener/LifecycleSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public function install(GenericEvent $event)
$settingsEntity->setStoreInDatabase(false);
$settingsEntity->setAllowAttachments(false);
$settingsEntity->setAllowAnonymous(false);

$this->em->persist($settingsEntity);
$this->em->flush();
}

public function update(GenericEvent $event)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "newscoop/send-feedback-plugin",
"description": "Send feedback and contact plugin.",
"keywords": ["newscoop", "send", "feedback", "contact", "email", "cms", "widget"],
"version": "0.5.4",
"version": "0.5.5",
"type": "newscoop-plugin",
"license": "GPL-3.0",
"authors": [
Expand Down

0 comments on commit 57a8f54

Please sign in to comment.