flag_handler_filter_flagged::option_definition breaks views exposed forms when AJAX is enabled

Created on 30 August 2018, over 7 years ago
Updated 19 August 2025, 5 months ago

Problem/Motivation

Steps to reproduce:

  1. Create a view with a flagged exposed filter.
  2. Enable AJAX.
  3. When navigating using the pager, the options value will always switch to '1'.

The following code seems to kick in:

  function option_definition() {
    $options = parent::option_definition();
    $options['value'] = array('default' => 1);
    return $options;
  }

When this code is removed, all seems to work as expected.

Proposed resolution

I don't understand why this exists, perhaps it can simply be removed?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Views integration

Created by

🇦🇺Australia Sam152

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024