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
Store Location Address model’s isStoreLocation
is false
#1773
Labels
Comments
mattstein
changed the title
Store Location Address model’s
Store Location Address model’s Oct 7, 2020
isStoreLocation
is false
.isStoreLocation
is false
Probably related but also weird: object(craft\commerce\models\Address)#748 (35) {
["id"] => string(1) "3"
["isStoreLocation"] => bool(false)
["attention"] => string(0) ""
["title"] => string(0) ""
["firstName"] => string(0) ""
["lastName"] => string(0) ""
["fullName"] => string(0) ""
["address1"] => string(25) "1234 Balboa Towers Circle"
["address2"] => string(4) "#100"
["address3"] => string(0) ""
["city"] => string(11) "Los Angeles"
["zipCode"] => string(5) "92662"
["phone"] => string(14) "(555) 555-5555"
["alternativePhone"] => string(0) ""
["label"] => string(0) ""
["businessName"] => string(17) "Gobias Industries"
["businessTaxId"] => string(5) "12345"
["businessId"] => string(0) ""
["stateName"] => string(0) ""
["countryId"] => string(3) "236"
["stateId"] => string(2) "26"
["notes"] => string(0) ""
["custom1"] => string(0) ""
["custom2"] => string(0) ""
["custom3"] => string(0) ""
["custom4"] => string(0) ""
["isEstimated"] => string(1) "0"
["_stateValue":"craft\commerce\models\Address":private] => NULL
["_vatValidator":"craft\commerce\models\Address":private] => NULL
["_errors":"yii\base\Model":private] => NULL
["_validators":"yii\base\Model":private] => NULL
["_scenario":"yii\base\Model":private] => string(7) "default"
["_events":"yii\base\Component":private] => array(0) {}
["_eventWildcards":"yii\base\Component":private] => array(0) {}
["_behaviors":"yii\base\Component":private] => array(0) {}
} |
What a perfect bug report! Fixed for the next release in 07d5411. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Emoji Summary
🤔 🤷♂️
Description
When I use
craft\commerce\services\Addresses::getStoreLocationAddress()
, the correct address information is returned but itsisStoreLocation
isfalse
even though its column has a1
in the database.Maybe it’s an issue in MySQL only and not Postgres?
To Reproduce
isStoreLocation
isfalse
.commerce_addresses
table. Observe thatisStoreLocation
is1
.Expected behavior
The
getStoreLocationAddress()
method returns the expected record, but I expected itsisStoreLocation
to betrue
or1
and it’sfalse
instead.Additional info
The text was updated successfully, but these errors were encountered: