diff --git a/lib/Drupal/views/Plugin/views/argument/ManyToOne.php b/lib/Drupal/views/Plugin/views/argument/ManyToOne.php index a5f68d5631e1e28b29202dcd950ae5dc2d07f280..b06f3ee708ddf2ea775421972bd1fe7c247b5303 100644 --- a/lib/Drupal/views/Plugin/views/argument/ManyToOne.php +++ b/lib/Drupal/views/Plugin/views/argument/ManyToOne.php @@ -63,15 +63,13 @@ 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'), - '#description' => t('If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'), - '#default_value' => !empty($this->options['break_phrase']), - '#fieldset' => 'more', - ); - } + $form['break_phrase'] = array( + '#type' => 'checkbox', + '#title' => t('Allow multiple values'), + '#description' => t('If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'), + '#default_value' => !empty($this->options['break_phrase']), + '#fieldset' => 'more', + ); $form['add_table'] = array( '#type' => 'checkbox', @@ -118,7 +116,12 @@ function query($group_by = FALSE) { } if (!empty($this->options['break_phrase'])) { - views_break_phrase($this->argument, $this); + 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);