Commit d2c9b80d authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Issue #1720734 by dawehner, damiankloip: Allow many to one handler to work with strings.

parent 14a8b0df
......@@ -63,7 +63,6 @@ function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// allow + for or, , for and
if (!empty($this->definition['numeric'])) {
$form['break_phrase'] = array(
'#type' => 'checkbox',
'#title' => t('Allow multiple values'),
......@@ -71,7 +70,6 @@ function options_form(&$form, &$form_state) {
'#default_value' => !empty($this->options['break_phrase']),
'#fieldset' => 'more',
);
}
$form['add_table'] = array(
'#type' => 'checkbox',
......@@ -118,8 +116,13 @@ function query($group_by = FALSE) {
}
if (!empty($this->options['break_phrase'])) {
if (!empty($this->definition['nummeric'])) {
views_break_phrase($this->argument, $this);
}
else {
views_break_phrase_string($this->argument, $this);
}
}
else {
$this->value = array($this->argument);
$this->operator = 'or';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment