Skip to content

Instantly share code, notes, and snippets.

@favrik
Created June 8, 2012 12:08
Show Gist options
  • Save favrik/2895301 to your computer and use it in GitHub Desktop.
Save favrik/2895301 to your computer and use it in GitHub Desktop.
mod.gmap.php
diff -r 9672935d0915 ee_system/expressionengine/third_party/gmap/mod.gmap.php
--- a/ee_system/expressionengine/third_party/gmap/mod.gmap.php Fri Jun 08 04:06:51 2012 -0700
+++ b/ee_system/expressionengine/third_party/gmap/mod.gmap.php Fri Jun 08 05:08:03 2012 -0700
@@ -1582,7 +1582,7 @@
$prep_fields = $this->EE->google_maps->prep_sql_fieldname($_POST, FALSE);
- $sql = 'SELECT `exp_channel_titles`.*, `exp_channel_data`.`entry_id`, `exp_category_posts`.`cat_id`,';
+ $sql = 'SELECT `exp_channel_titles`.*, `exp_channel_titles`.`title` as `entry_title`, `exp_channel_data`.`entry_id`, `exp_category_posts`.`cat_id`,';
$where = '';
$having = '';
$loc_sql = ', 0 as `distance`';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment