Problem/Motivation
The events view default display has an incomplete sticky filter that was introduced in commit 225cf4b ("Make views language aware"). The filter is missing its operator, value, and
group properties.
This causes sticky events to appear twice:
- Once in the main events list (should only show non-sticky)
- Once in the "Top Event" attachment (correctly shows sticky)
Steps to reproduce
1. Create an event node and mark it as "Sticky at top of lists"
2. Navigate to the events page
3. Observe the sticky event appears in BOTH the main list AND the "Top Event" section
Proposed resolution
In config/default/views.view.events.yml, the default display's sticky filter needs to be completed.
Current (broken):
sticky:
id: sticky
table: node_field_data
field: sticky
entity_type: node
entity_field: sticky
plugin_id: boolean
Should be:
sticky:
id: sticky
table: node_field_data
field: sticky
entity_type: node
entity_field: sticky
plugin_id: boolean
operator: '='
value: '0'
group: 1
exposed: false
This restores the original behavior from commit c5ee041 where non-sticky events appear in the main list and sticky events appear only in the "Top Event" section.
Remaining tasks
- Review and merge
User interface changes
Sticky events will appear only once (in "Top Event" section) instead of twice.
API changes
None.
Data model changes
None.
Issue fork la_eu-3570789
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
stmh commentedComment #5
stmh commented