Description:

In https://www.drupal.org/project/mapycz/issues/3080567 we provided option to allow multiple layers with layer switcher. To provide compatibility with Mapy.cz service, we changed indexes to numeric values. Now, code fails to execute, because there are no layers with legacy string indexes.

Proposed solution

  1. do fallback to global formatter settings if map type is string
  2. provide upgrade hook from string indexes to numeric ones
CommentFileSizeAuthor
#2 upgrade-path-3149629-2.patch753 bytesmirom

Comments

mirom created an issue. See original summary.

mirom’s picture

StatusFileSize
new753 bytes

Fallback solution is here, upgrade hook will be added later, because it requires a bit of investigation how to do it the best way. Problem is that you can have multiple fields requiring update. I'm able to get all field definitions by calling https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21..., but then I need to figure out how to build batch processor out of that.

cvikir’s picture

this issue is linked to https://www.drupal.org/project/mapycz/issues/3293610 where we added subsequent patch for views integration too.

cvikir’s picture

Related issues: +#3293610: Doesn't work on D9
cvikir’s picture

The patch from https://www.drupal.org/project/mapycz/issues/3293610 should solve this issue.