Hey thanks for this functionality with adding the traffic field on #3093362!

However we are finding for all existing nodes that had a google map field prior to the 1.8 release, when they are saved with no changes we are getting the error:

"This value should be of the correct primitive type."

The only way to fix this for editors is by opening the map field using "Set Map" and clicking "Insert Map" without any changes. So there's a workaround bit it's a bit clunky.

This is because the new traffic field must be an integer value, but it doesn't have a value until you open the map again. Suggestion is updating existing field data to set this to the default of 0, or accepting this could be an empty value on save, and either allowing the save or setting it to 0 when empty etc. Few ways to fix for existing sites.

Comments

ThomWilhelm created an issue. See original summary.

  • scot.hubbard committed 40c57bb on 8.x-1.x
    Issue #3154683: New traffic field causes primitive type error when...
scot.hubbard’s picture

Status: Active » Fixed
scot.hubbard’s picture

Status: Fixed » Closed (fixed)

ThomWilhelm - thanks for pointing this out - I have released a fix in version 8.x-1.13