Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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'
Comment | File | Size | Author |
---|---|---|---|
#7 | fix_var_undefined.patch | 1.1 KB | aliocza |
Comments
Comment #2
itamair CreditAttribution: itamair as a volunteer commentedtnx @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.
Comment #3
itamair CreditAttribution: itamair as a volunteer commentedComment #5
itamair CreditAttribution: itamair as a volunteer commentedI better tuned the support for Multivalues Geofield, in the last dev and 8.x-1.1 release,
so that this should be fixed.
Comment #6
itamair CreditAttribution: itamair as a volunteer commentedComment #7
aliocza CreditAttribution: aliocza commentedThank 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.
Comment #8
itamair CreditAttribution: itamair as a volunteer commentedComment #9
itamair CreditAttribution: itamair as a volunteer commentedYour patch should have been fixed/outdated with the last dev commit, as stated in the #2881992: map_initialize: Cannot read property 'length' of undefined