Closed billmn closed 1 year ago
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.
users/save-address
userId
ownerId
https://github.com/craftcms/cms/blob/b1ee3e69903e9c2ad1dce1b64813dc865d058d59/src/controllers/UsersController.php#L1861-L1866
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 ofuserId
field and notownerId
. Furthermore, the presence of the field is optional.https://github.com/craftcms/cms/blob/b1ee3e69903e9c2ad1dce1b64813dc865d058d59/src/controllers/UsersController.php#L1861-L1866