Secondary option displays incorrectly after version 6.0.3

Created on 3 May 2024, about 2 months ago
Updated 19 June 2024, 6 days ago

Problem/Motivation

I have several filters placed into the secondary options and they work fine with version 6.0.3 but when i upgraded to 6.0.4 and 6.0.5, they stopped working and just show in the normal location and the "Advanced options" section is blank! I switched back to version 6.0.3 and they display fine again so it appears that version 6.0.4 and 6.0.5 broke this feature.

FYI, I'm using the Drupal8 W3CSS Sub-theme 2.0.13 (d8w3css) theme @ https://www.drupal.org/project/d8w3css; β†’ in case that's helpful.

I've attached some screen shots showing my settings for one of the filters:

πŸ› Bug report
Status

Postponed: needs info

Version

7.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @monaw
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave
  • πŸ‡ΊπŸ‡ΈUnited States crutch

    We are still using 6.0.x-dev at the moment. After an update, we are experiencing similar but only for date exposed filter that had "Make filter options collapsible" checked. The date field was collapsible within the secondary option. When unchecking "Make filter options collapsible" the date field then falls back under secondary option but it can't be collapsible.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    So don't have much time to actively work on this module but will happily review any suggestions.

  • Status changed to Postponed: needs info 16 days ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    So tried replicating on a fresh install on 7.0.x and Drupal 10.3.x

    Using the test module provided to check
    In the view checked Enable secondary exposed form options
    Then enabled a date field and taxonomy field to be secondary options
    They appear fine.

    Tested collapsible feature on another field and that rendered fine too.

    Can you provide additional details.,

  • πŸ‡ΊπŸ‡ΈUnited States crutch

    Thank you we will try to move from 6.0.x-dev to 7.0.x this week which sounds like it will fix this issue.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Just make sure to read the release notes. Really only difference is jquery modules are removed so if you’re using them you’ll have to include in your composer file.

  • πŸ‡ΊπŸ‡ΈUnited States crutch

    Hi, I tried 7.0.x-dev in development. Getting the same result.

    We do have another View with a date exposed filter where no filters are secondary. If it is collapsible, the date filter is the first filter even though it is ordered to be the last.

    When editing the View filters, it is last. When editing BEF in the View, it is last. But for the visitor it displays first. We are using Layout Builder and Claro for these displays, Drupal 10.2.6.

    Unchecking collapsible puts it back in the right spot. This seems to be an issue with the date field or it maybe being a composite field.

  • πŸ‡ΊπŸ‡ΈUnited States npcoder

    I updated Drupal core to 10.2.6 with contributed modules as well. I figured out that the Better Exposed Filters module caused the problem - Secondary option displays.

    I reverted to 6.0.3, which works as before.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    I'm still not able to replicate on 7.0.x. can the steps be written out vs in screenshots please.

  • πŸ‡ΊπŸ‡ΈUnited States crutch

    I'll try and help with an example. Let me know if needing something different.

    This is for reporting Metrics which are displayed with the Claro theme. Claro is the admin theme, but we are using the Theme Switcher module to also use Claro for metrics displays.

    There are more taxonomy fields but they are excluded in the example below.

    Content Types
    - Course - the base course information (body), some other long text fields, image, etc.
    - Course Schedule - a time based event containing fields for schedule (date), participants (integer), select Course (entity reference), etc.

    Format: Table
    Header: Global results summary
    Relationships: field_select_content (reverse)
    Use aggregation: No
    Caching: Time-based:12 hours/12 hours

    Fields:
    - Content: Title (Course)
    - (field_select_content) Content: Title (Schedule)
    - (field_select_content) Content: Actual (Participants)
    - (field_select_content) Content: College Affiliation (College Affiliation)
    - (field_select_content) Content: Schedule (Class Schedule)

    Filter criteria:
    - Content: Content type (= Course)
    - Content: Title (exposed)
    - (field_select_content) Content: College Affiliation (field_college_affiliation) (ef) (exposed)
    - (field_select_content) Content: Schedule (exposed)
    - (field_select_content) Content: Schedule:delta (= 0)
    - (field_select_content) Content: Instructor(s):delta (= 0)

    Exposed form:
    type: bef
    options:
    submit_button: Apply
    reset_button: true
    reset_button_label: Reset
    exposed_sorts_label: 'Sort by'
    expose_sort_order: true
    sort_asc_label: Asc
    sort_desc_label: Desc
    text_input_required: 'Select any filter and click on Apply to see results'
    text_input_required_format: basic_html
    bef:
    general:
    autosubmit: false
    autosubmit_exclude_textfield: false
    autosubmit_textfield_delay: 500
    autosubmit_hide: false
    input_required: false
    allow_secondary: true
    secondary_label: Filters
    secondary_open: false
    reset_button_always_show: false
    filter:
    title:
    plugin_id: default
    advanced:
    placeholder_text: ''
    collapsible: false
    collapsible_disable_automatic_open: false
    is_secondary: true
    field_schedule_value:
    plugin_id: bef_datepicker
    advanced:
    collapsible: false
    collapsible_disable_automatic_open: false
    is_secondary: true
    field_college_affiliation_target_id_entityreference_filter:
    plugin_id: default
    advanced:
    sort_options: false
    rewrite:
    filter_rewrite_values: '- Any -|All'
    filter_rewrite_values_key: false
    collapsible: false
    collapsible_disable_automatic_open: false
    is_secondary: true

    I used config sync to export the BEF settings. When looking at that it seems that "Schedule" is ordered before "College Affiliation" which isn't the order of the exposed filters, but that may not have any bearing. When editing BEF settings the order is correct.

Production build 0.69.0 2024