localgovdrupal / localgov_geo

Entity for storing Geographic information, addresses, and areas; extensible types and plugable backends with defaults to start.
2 stars 1 forks source link

Add condition on localgov_roles to update 10001 to avoid failure on s… #126

Closed finnlewis closed 2 months ago

finnlewis commented 2 months ago

…ites where we do not have localgov_roles.

See #125

finnlewis commented 2 months ago

Nope, that doesn't work.

finnlewis commented 2 months ago

@dedavidson I've fixed the failing test too, how's this looking?

stephen-cox commented 2 months ago

This has just fixed the issue when I was updating a Microsite install.

I'm a bit nervous about replacing the class constants with strings, but as this is an update hook and we're not using LGD Roles on Microsites then this will have to do.