Skip to content

Commit

Permalink
Merge pull request #294 from klaviyo/202403_BUGPORT-1750-m-2-extensio…
Browse files Browse the repository at this point in the history
…n-4-1-2-undefined-variable-error

Removes unnecessary $response var binding.
  • Loading branch information
kamidzi-klaviyo-integrations authored Mar 29, 2024
2 parents 7eb2261 + ca1717c commit d7621a3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- BEGIN RELEASE NOTES -->
### [Unreleased]

### [4.1.3] - 2024-03-29

#### Fixed
- BUGPORT-1750: unassigned $response variable from api call during list subscription

### [4.1.2] - 2024-01-31

#### Fixed
Expand Down Expand Up @@ -272,7 +277,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- END RELEASE NOTES -->
<!-- BEGIN LINKS -->
[Unreleased]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.2...HEAD
[Unreleased]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.3...HEAD
[4.1.3]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.2...4.1.3
[4.1.2]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.1...4.1.2
[4.1.1]: https://github.com/klaviyo/magento2-klaviyo/compare/4.1.0...4.1.1
[4.1.0]: https://github.com/klaviyo/magento2-klaviyo/compare/4.0.12...4.1.0
Expand Down
5 changes: 1 addition & 4 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function subscribeEmailToKlaviyoList($email, $firstName = null, $lastName
)
);

$response = $api->subscribeMembersToList($listId, array($consent_profile_object));
$api->subscribeMembersToList($listId, array($consent_profile_object));
} else {
// Search for profile by email using the api/profiles endpoint
$existing_profile = $api->searchProfileByEmail($email);
Expand All @@ -142,10 +142,7 @@ public function subscribeEmailToKlaviyoList($email, $firstName = null, $lastName
}
} catch (\Exception $e) {
$this->_klaviyoLogger->log(sprintf('Unable to subscribe %s to list %s: %s', $email, $listId, $e));
$response = false;
}

return $response;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "klaviyo/magento2-extension-dev",
"description": "The local development composer file. This is used for local and continuous integration setup/testing.",
"type": "magento2-module",
"version": "4.1.2",
"version": "4.1.3",
"autoload": {
"psr-4": {
"Klaviyo\\Reclaim\\": ""
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": "4.1.2",
"version": "4.1.3",
"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="4.1.2" schema_version="4.1.2">
<module name="Klaviyo_Reclaim" setup_version="4.1.3" schema_version="4.1.3">
<sequence>
<module name="Magento_Customer"/>
<module name="Magento_Checkout"/>
Expand Down

0 comments on commit d7621a3

Please sign in to comment.