Fix issue with broken links in asset map popup

**Why?** When assets don't have a URL alias and have an id
greater than 1000, the link to those assets was getting rendered
with a comma in the map popup, which breaks the link - often leading
to the wrong asset like `/farm/asset/1` instead of `/farm/asset/1234`.
This commit is contained in:
Symbioquine 2021-01-30 22:20:28 -08:00 committed by Michael Stenta
parent f93d4bef58
commit 03ac1edc5e
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ function farm_movement_views_default_views() {
$handler->display->display_options['fields']['id']['table'] = 'farm_asset';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: Field: Geometry */
$handler->display->display_options['fields']['field_farm_geofield']['id'] = 'field_farm_geofield';
$handler->display->display_options['fields']['field_farm_geofield']['table'] = 'field_data_field_farm_geofield';