diff --git a/core/lib/Drupal/Core/Render/Element/Checkboxes.php b/core/lib/Drupal/Core/Render/Element/Checkboxes.php index a1bd903..1b59cd3 100644 --- a/core/lib/Drupal/Core/Render/Element/Checkboxes.php +++ b/core/lib/Drupal/Core/Render/Element/Checkboxes.php @@ -155,7 +155,7 @@ static public function getCheckedCheckboxes(array $input) { * TRUE if all options are unchecked. FALSE otherwise. */ static public function detectEmptyCheckboxes(array $input) { - return (bool) empty(static::getCheckedCheckboxes($input)); + return empty(static::getCheckedCheckboxes($input)); } } diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php index a6f6987..0f55ef3 100644 --- a/core/modules/views/src/Form/ViewsExposedForm.php +++ b/core/modules/views/src/Form/ViewsExposedForm.php @@ -181,6 +181,8 @@ public function submitForm(array &$form, FormStateInterface $form_state) { if (!empty($key) && !in_array($key, $exclude)) { if (is_array($value)) { // Handle checkboxes, we only want to include the checked options. + // @TODO: revisit the need for this when + // https://www.drupal.org/node/342316 is resolved. $checked = Checkboxes::getCheckedCheckboxes($value); foreach ($checked as $option_id) { $view->exposed_raw_input[$option_id] = $value[$option_id]; diff --git a/core/modules/views/src/Plugin/views/filter/InOperator.php b/core/modules/views/src/Plugin/views/filter/InOperator.php index 4d7bac0..fc1ea4d 100644 --- a/core/modules/views/src/Plugin/views/filter/InOperator.php +++ b/core/modules/views/src/Plugin/views/filter/InOperator.php @@ -288,7 +288,7 @@ public function reduceValueOptions($input = NULL) { } /** - * @inheritdoc + * {@inheritdoc} */ public function acceptExposedInput($input) { if (empty($this->options['exposed'])) {