Skip to content

Commit

Permalink
Merge pull request #151 from klaviyo/202112_m2_newsletter_fix
Browse files Browse the repository at this point in the history
adding fix and updating version
  • Loading branch information
klaviyojad authored Dec 21, 2021
2 parents 8e38dee + bbc5151 commit 342aabf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### [Unreleased]

### [3.0.11] - 2021-12-21

#### Fixed
- Error affecting customers using Magento's embedded footer forms

### [3.0.10] - 2021-11-10

#### Changed
Expand Down Expand Up @@ -134,7 +139,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- CSP now uses report-only mode


[Unreleased]: https://github.com/klaviyo/magento2-klaviyo/compare/3.0.10...HEAD
[Unreleased]: https://github.com/klaviyo/magento2-klaviyo/compare/3.0.11...HEAD
[3.0.11]: https://github.com/klaviyo/magento2-klaviyo/compare/3.0.10...3.0.11
[3.0.10]: https://github.com/klaviyo/magento2-klaviyo/compare/3.0.9...3.0.10
[3.0.9]: https://github.com/klaviyo/magento2-klaviyo/compare/3.0.8...3.0.9
[3.0.8]: https://github.com/klaviyo/magento2-klaviyo/compare/3.0.7...3.0.8
Expand Down
2 changes: 1 addition & 1 deletion Observer/NewsletterSubscribeObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function execute(Observer $observer)
/** @var Subscriber $subscriber */
$subscriber = $observer->getDataObject();

if ($subscriber->hasDataChanges()) {
if ($subscriber && $subscriber->hasDataChanges()) {
$customer = $this->getCustomer($subscriber);

if ($subscriber->isSubscribed()) {
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": "klaviyo/magento2-extension",
"description": "Klaviyo extension for Magento 2. Allows pushing newsletters to Klaviyo's platform and more.",
"type": "magento2-module",
"version": "3.0.10",
"version": "3.0.11",
"autoload": {
"files": [
"registration.php"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Klaviyo_Reclaim" setup_version="3.0.10" schema_version="3.0.10">
<module name="Klaviyo_Reclaim" setup_version="3.0.11" schema_version="3.0.11">
<sequence>
<module name="Magento_Customer"/>
<module name="Magento_Checkout"/>
Expand Down

0 comments on commit 342aabf

Please sign in to comment.