summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--handlers/views_handler_argument.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/handlers/views_handler_argument.inc b/handlers/views_handler_argument.inc
index 0baeed1..72c07e2 100644
--- a/handlers/views_handler_argument.inc
+++ b/handlers/views_handler_argument.inc
@@ -461,6 +461,12 @@ class views_handler_argument extends views_handler {
// Copy the now submitted options to their final resting place so they get saved.
$form_state['values']['options']['validate_options'] = $options;
}
+
+ // Clear out the content of title if it's not enabled.
+ $options =& $form_state['values']['options'];
+ if (empty($options['title_enable'])) {
+ $options['title'] = '';
+ }
}
/**