Skip to content
Snippets Groups Projects
Commit f13cc83d authored by Andy Broomfield's avatar Andy Broomfield Committed by ekes
Browse files

Issue #3390087: Error when trying to edit an existing geo entity in an entity browser

parent a359aa19
No related branches found
No related tags found
1 merge request!5Issue #3390087: Error when trying to edit an existing geo entity in an entity browser
......@@ -112,7 +112,7 @@ function geo_entity_views_pre_render(ViewExecutable $view) {
* Adds JS event handler to Geofield Map lon lat fields for geocoder.
*/
function geo_entity_geofield_map_latlon_element_alter(array &$map_settings, array &$complete_form, array &$form_state_values) {
$complete_form['#attached']['library'] = 'geo_entity/geocode-geofield';
$complete_form['#attached']['library'][] = 'geo_entity/geocode-geofield';
$complete_form['#attached']['drupalSettings']['geoEntityGeocode']['geofield'][$complete_form['#id']] = [
'lon' => $map_settings['lngid'],
'lat' => $map_settings['latid'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment