Index: openlayers_geocoder.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers_geocoder/openlayers_geocoder.module,v
retrieving revision 1.7.2.13
diff -u -p -r1.7.2.13 openlayers_geocoder.module
--- openlayers_geocoder.module	23 Sep 2010 14:23:22 -0000	1.7.2.13
+++ openlayers_geocoder.module	23 Sep 2010 14:43:12 -0000
@@ -252,6 +252,7 @@ function openlayers_geocoder_process_res
 
   $query = $_POST['query'];
   $fieldname = $_POST['fieldname'];
+  $contenttype = $_POST['contenttype'];
 
   if ($response = openlayers_geocoder_response($query)) {
 
@@ -263,7 +264,7 @@ function openlayers_geocoder_process_res
     $location['box']['south'] = $result['bounds']['southwest']->lat;
     $location['box']['west'] = $result['bounds']['southwest']->lng;
 
-    $field = content_fields($fieldname);
+    $field = content_fields($fieldname, $contenttype);
     if ($field && $field['widget']['type'] == 'openlayers_geocoder_widget') {
       if (isset($field['widget']['keep_points'])) {
         $location['keep_points'] = $field['widget']['keep_points'];
Index: js/openlayers_geocoder.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers_geocoder/js/openlayers_geocoder.js,v
retrieving revision 1.5.2.12
diff -u -p -r1.5.2.12 openlayers_geocoder.js
--- js/openlayers_geocoder.js	23 Sep 2010 14:23:22 -0000	1.5.2.12
+++ js/openlayers_geocoder.js	23 Sep 2010 14:43:12 -0000
@@ -46,10 +46,13 @@ Drupal.Geocoder.prototype.process = func
   
   var fieldname = $(this.data.input).attr('fieldname');
   var dashed = $(this.data.input).attr('dashed');
+  var formid = $("input[name=form_id]").val();
+  var contenttype = formid.replace("_node_form", "");
   
   var data = {
     query:query,
-    fieldname:fieldname
+    fieldname:fieldname,
+    contenttype:contenttype
   };
 
   $.ajax({
