craftcms / docs

Documentation for Craft CMS, Craft Commerce, and other official products.
https://craftcms.com/docs
39 stars 150 forks source link

Commerce 4: replace/remove `ownerId` reference on upgrading page #417

Closed billmn closed 1 year ago

billmn commented 2 years ago

Description

In the Commerce 4 Upgrading page there is this sentence: https://github.com/craftcms/docs/blob/e1f5eda39db0207a58a9ff998ceef9757e84ab15/docs/commerce/4.x/upgrading.md?plain=1#L289

This is the link to the docs: https://craftcms.com/docs/commerce/4.x/upgrading.html#front-end-form-requests-and-responses

In Craft 4, the users/save-address action check the presence of userId field and not ownerId. Furthermore, the presence of the field is optional.

https://github.com/craftcms/cms/blob/b1ee3e69903e9c2ad1dce1b64813dc865d058d59/src/controllers/UsersController.php#L1861-L1866