Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
df881baf
Commit
df881baf
authored
Nov 23, 2014
by
webchick
Browse files
Issue
#2341461
by ashutoshsngh, esod, quietone: Remove usage of form_options_flatten()
parent
eda7b8a8
Changes
1
Show whitespace changes
Inline
Side-by-side
core/modules/views/src/Plugin/views/filter/InOperator.php
View file @
df881baf
...
...
@@ -12,6 +12,7 @@
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\views\Plugin\views\display\DisplayPluginBase
;
use
Drupal\views\ViewExecutable
;
use
Drupal\Core\Form\OptGroup
;
/**
* Simple filter to handle matching of multiple options selectable via checkboxes
...
...
@@ -435,7 +436,7 @@ public function validate() {
}
// Some filter_in_operator usage uses optgroups forms, so flatten it.
$flat_options
=
form_options_flatten
(
$this
->
valueOptions
,
TRUE
);
$flat_options
=
OptGroup
::
flattenOptions
(
$this
->
valueOptions
);
// Remove every element which is not known.
foreach
(
$this
->
value
as
$value
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment