Closed
Description
In the Magento_Newsletter module an extension attribute 'is_subscribed' is defined for the \Magento\Customer\Api\Data\CustomerInterface. However when fetching the customer through api, the extension attribute is not present in the data.
Preconditions
- PHP7
- CE 2.2.2 (also tested EE 2.2.2)
Steps to reproduce
- Create a new customer through the frontend registration and make sure to check the subscribe to newsletter checkbox
- Fetch the newly created customer through the api call '../rest/nl/V1/customers/{newCustomerId}'
Expected result
- Extension attributes are present in the data containing a value for 'is_subscribed'
Actual result
- The extension attributes are missing from the customer data
I did some basic digging into the core and noticed there is no actual place in the Magento_Newsletter module that sets the extension attribute 'is_subscribed' after the customer is fetched.
I compared this with the Magento_GiftMessage module where in the Magento\GiftMessage\Model\Plugin folder there are several classes which contain logic to add extension attributes to the orders when fetching and saving.
Seems like somebody dropped the ball when programming the Magento_Newsletter module.
#magentomagic
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release