Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Order hasMatchingAddresses ignore fullName #2955

Closed
billmn opened this issue Aug 31, 2022 · 1 comment
Closed

[4.x]: Order hasMatchingAddresses ignore fullName #2955

billmn opened this issue Aug 31, 2022 · 1 comment
Labels
bug commerce4 Issues related to Commerce v4

Comments

@billmn
Copy link
Contributor

billmn commented Aug 31, 2022

What happened?

Description

I have two addresses that are the identical but have different "Full Name" values.
The hasMatchingAddresses method returns true instead of false.

Steps to reproduce

  1. Add fullName native field in Address Field's layout
  2. Create two identical adresses but for one insert a different "Full Name"
  3. Use hasMatchingAddresses method to compare this two addresses

Expected behavior

If the full name is different, hasMatchingAddresses should return false.

Actual behavior

Even if the full name is different, hasMatchingAddresses return true.

Craft CMS version

4.2.3

Craft Commerce version

4.1.0

PHP version

8.0.21

Operating system and version

macOS 12.5.1

Database type and version

MariaDB 15.1

Image driver and version

No response

Installed plugins and versions

@billmn billmn added commerce4 Issues related to Commerce v4 bug labels Aug 31, 2022
@nfourtythree
Copy link
Contributor

Hi @billmn

This is a duplicate of #2917

Please follow along there and any any extra info on that issue (if required).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

No branches or pull requests

2 participants