🇨🇦Canada @jcornuz@gmail.com

Account created on 10 February 2017, almost 8 years ago
#

Recent comments

🇨🇦Canada jcornuz@gmail.com

Replacing
$response->setContent(render($output));

with
$response->setContent($output);

on line 193 works for me.

🇨🇦Canada jcornuz@gmail.com

Yes the patch works. Thanks for taking the time to sort that out!

Hum, I hadn't realized that I was going to be charged by Google per API call (I thought there as a free tier and given the scope of my project, I would be within its limits).

Moved on to Photon for the time being (we will see what the client decides about it)

🇨🇦Canada jcornuz@gmail.com

I sprinkeld the code with console.log stuff (don't know how to do better :P )

ui.item.state is undefined and then the if code is executed (not the else if)

So I tried the following (after a bit of googleing)

if(typeof ui.item.state !== "undefined") {
form_wrapper.find('select.administrative-area').val(ui.item.state);
} else if(typeof ui.item.administrative_area !== "undefined") {
form_wrapper.find('select.administrative-area').val(ui.item.administrative_area);
}

and it is now working... but I don't know if it is the right fix?!?

By the way, Google Map (the provider I use) returns QC for our province which is the correct value in the address drop down.

🇨🇦Canada jcornuz@gmail.com

I did patch version 1.0.8 in my previous report.

I have since uninstalled and reinstalled the git version (composer require drupal/address_suggestion:1.0.x-dev) and cleaned cache (drush cr) a few times just to make sure.

Still no dice... same problem :/
(tried an icognito browser window to make sure it wasn't a local cache issue)

Everything else in the dev version works fine, by the way :)

🇨🇦Canada jcornuz@gmail.com

Thanks for your super quick feedback.

It doesn't work, I am afraid: I always end up with "None" selected - even if a province is already selected :(

Production build 0.71.5 2024