Hi,

If you create a geofield with unlimited values, i have error when i click "add a nother item" in add or edit content with this field : all box preview map becomes blank with error in console : 'Uncaught TypeError: Cannot read property 'firstChild' of null'

CommentFileSizeAuthor
#7 fix_var_undefined.patch1.1 KBaliocza
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aliocza created an issue. See original summary.

itamair’s picture

tnx @aliocza ... this is an interesting use case, that I didn't investigate so far that much.
I am going to ... and try to fix this.

itamair’s picture

Status: Active » Needs work

  • itamair committed 8d56ca3 on 8.x-1.x
    Added support for Multivalues Geofields (solve Issue #2877712):
    - added...
itamair’s picture

I better tuned the support for Multivalues Geofield, in the last dev and 8.x-1.1 release,
so that this should be fixed.

itamair’s picture

Status: Needs work » Fixed
aliocza’s picture

FileSize
1.1 KB

Thank you very match, it works :)
But your new release has a little bug for me : at line 499 in geofield_map.js 'Cannot read property 'length' of undefined'
I have only added != undefined for fix it.

itamair’s picture

itamair’s picture

Your patch should have been fixed/outdated with the last dev commit, as stated in the #2881992: map_initialize: Cannot read property 'length' of undefined

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.