Skip to content

Commit

Permalink
1.17.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Croker committed Dec 11, 2020
1 parent 9f3ee68 commit 2229110
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Campaign

## 1.17.5 - 2020-12-11
### Fixed
- Fixed a bug that was preventing campaign types and mailing list types from being created when installing the plugin via project config ([#191](https://github.com/putyourlightson/craft-campaign/issues/191)).

## 1.17.4 - 2020-12-11
### Fixed
- Fixed a bug in the Amazon SES webhook that was preventing bounce and complain notifications from being received through SNS ([#202](https://github.com/putyourlightson/craft-campaign/issues/202)).
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "putyourlightson/craft-campaign",
"description": "Send and manage email campaigns, contacts and mailing lists.",
"version": "1.17.4",
"version": "1.17.5",
"type": "craft-plugin",
"homepage": "https://putyourlightson.com/plugins/campaign",
"license": "proprietary",
Expand Down
6 changes: 6 additions & 0 deletions src/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ private function _registerAfterInstallEvent()
Event::on(Plugins::class, Plugins::EVENT_AFTER_INSTALL_PLUGIN,
function(PluginEvent $event) {
if ($event->plugin === $this) {
// Don't proceed if plugin exists in incoming project config, otherwise updates won't be applied
// https://github.com/putyourlightson/craft-campaign/issues/191
if (Craft::$app->projectConfig->get('plugins.campaign', true) !== null) {
return;
}

// Create and save default settings
$settings = $this->createSettingsModel();
$this->settings->saveSettings($settings);
Expand Down

0 comments on commit 2229110

Please sign in to comment.