Describe the bug
While creating #11540, i have noticed that upcoming_meeting_for_card hook does not take into account moderated status on meetings.
|
Decidim.view_hooks.register(:upcoming_meeting_for_card, priority: Decidim::ViewHooks::LOW_PRIORITY) do |view_context| |
|
published_components = Decidim::Component.where(participatory_space: view_context.current_participatory_space).published |
|
upcoming_meeting = Decidim::Meetings::Meeting.where(component: published_components).published.upcoming.order(:start_time, :end_time).first |
|
|
|
next unless upcoming_meeting |
|
|
|
view_context.render( |
|
partial: "decidim/participatory_spaces/upcoming_meeting_for_card.html", |
|
locals: { |
|
upcoming_meeting: |
|
} |
|
) |
|
end |
To Reproduce
TBD
Expected behavior
Moderated meetings should be displayed in the upcoming meetings section within a participatory process.
Screenshots
No response
Stacktrace
No response
Extra data
- Decidim Version: 0.27, 0.28
Additional context
No response
Describe the bug
While creating #11540, i have noticed that
upcoming_meeting_for_cardhook does not take into account moderated status on meetings.decidim/decidim-meetings/lib/decidim/meetings/engine.rb
Lines 70 to 82 in 18036d4
To Reproduce
TBD
Expected behavior
Moderated meetings should be displayed in the upcoming meetings section within a participatory process.
Screenshots
No response
Stacktrace
No response
Extra data
Additional context
No response