Active
Project:
GMap Field
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2009 at 14:50 UTC
Updated:
22 Nov 2009 at 17:54 UTC
If the edit rights of gmapfield is access restricted by hook_field_access(), then the validate callback always set this error: "Please enter a valid GMap macro."
The field is not required.
Maybe the solution is (line 736):
function _gmapfield_validate(&$item, $delta, $field, $node) {
// Check for valid GMap Macro
if (!gmapfield_content_is_empty($item, $field) AND !_gmapfield_validate_macro($item['gmap_macro'])) {
form_set_error($field['field_name'] .']['. $delta. '][title', t('Please enter a valid GMap macro.'));
}
return TRUE;
}
Comments
Comment #1
zzolo commentedI am not able to reproduce this. Try new code that I am about to commit.