Skip to content

Commit

Permalink
GAS-2371 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellward authored Aug 20, 2024
1 parent 87640d2 commit 2eba338
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Model/Config/Source/Products/Attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class Attributes implements OptionSourceInterface
{
public const REQUIRED = [
'entity_id',
'sku',
'price',
'image',
Expand Down
2 changes: 1 addition & 1 deletion Observer/Event/WishlistRemoveProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function execute(Observer $observer)
$customEventRequest = $this->wishlistRemove->prepareRequest(
self::EVENT,
$wishlist,
$observer->getEvent()->getProduct()
$item->getProduct()
);

if ($config->isEventMessageQueueEnabled(self::EVENT)) {
Expand Down
4 changes: 2 additions & 2 deletions SyneriseApi/Mapper/Data/CustomerCRUD.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ public function getEnabledAttributes(?int $storeId = null)
/**
* Get address if available
*
* @param int $addressId
* @param int|null $addressId
* @return AddressInterface|null
*/
protected function getAddressIfAvailable(int $addressId): ?AddressInterface
protected function getAddressIfAvailable(?int $addressId): ?AddressInterface
{
try {
return $addressId ? $this->addressRepository->getById($addressId) : null;
Expand Down
3 changes: 2 additions & 1 deletion SyneriseApi/Sender/Data/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public function sendItems($collection, int $storeId, ?int $websiteId = null, arr

$email = $order->getCustomerEmail();
$uuid = $email ? $this->uuidGenerator->generateByEmail($email) : null;
$snrsParams = isset($options['snrs_params']) && $options['snrs_params'] ?: [];
$snrsParams = isset($options['snrs_params']) && is_array($options['snrs_params']) ?
$options['snrs_params'] : [];

try {
$createATransactionRequest[] = $this->orderCRUD->prepareRequest($order, $uuid, $snrsParams);
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": "synerise/magento2-integration",
"description": "Synerise Magento 2 integration module.",
"type": "magento2-module",
"version": "3.0.7",
"version": "3.0.8",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down

0 comments on commit 2eba338

Please sign in to comment.