From c0c6ab5b8aec9a47deebab4b6d26e941c0c7665a Mon Sep 17 00:00:00 2001 From: "haiiro.shimeji" <haiiro.shimeji@gmail.com> Date: Sat, 3 Mar 2012 14:38:10 +0900 Subject: [PATCH] Issue #1425448 Error using with views - Grouping field keeps getting recreated --- gmap_plugin_style_gmap.inc | 1 + gmap_plugin_style_gmapextended.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/gmap_plugin_style_gmap.inc b/gmap_plugin_style_gmap.inc index 4cace42..c9be6fe 100644 --- a/gmap_plugin_style_gmap.inc +++ b/gmap_plugin_style_gmap.inc @@ -466,6 +466,7 @@ class gmap_plugin_style_gmap extends views_plugin_style { * Validate the options form. */ function options_validate(&$form, &$form_state) { + parent::options_validate($form, $form_state); // Check if highlight color is a valid hex color if (!preg_match('/^#[a-f0-9]{6}$/i', $form_state['values']['style_options']['highlight_nodearg_color'])) { form_error($form['highlight_nodearg_color'], t('Highlight colour must be a valid hex code in the form #FF0000.')); diff --git a/gmap_plugin_style_gmapextended.inc b/gmap_plugin_style_gmapextended.inc index 1eafa80..20d1dfa 100644 --- a/gmap_plugin_style_gmapextended.inc +++ b/gmap_plugin_style_gmapextended.inc @@ -322,6 +322,7 @@ class gmap_plugin_style_gmapextended extends views_plugin_style { * Validate the options form. */ function options_validate(&$form, &$form_state) { + parent::options_validate($form, $form_state); // Check if highlight color is a valid hex color if (!preg_match('/^#[a-f0-9]{6}$/i', $form_state['values']['style_options']['highlight_nodearg_color'])) { form_error($form['highlight_nodearg_color'], t('Highlight colour must be a valid hex code in the form #FF0000.')); -- GitLab