Skip to content

Commit

Permalink
Filter proposals according to AY profile even before tab switching (b…
Browse files Browse the repository at this point in the history
…sc#1190294)

The filtering code was only used after a tab change (in switch_to_tab), here
apply it also for the initial display.
  • Loading branch information
mvidner committed Sep 25, 2021
1 parent f8c2050 commit 6b1fb7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/installation/proposal_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,8 @@ def make_proposal(force_reset, language_changed)
@html[submod] = prop

# now do the complete html
presentation_modules = @store.presentation_order
presentation_modules = presentation_modules[@current_tab] if @store.tabs?
proposal = presentation_modules.reduce("") do |res, mod|
load_matching_submodules_list
proposal = @submodules_presentation.reduce("") do |res, mod|
res << (@html[mod] || "")
end
display_proposal(div_with_direction(proposal))
Expand Down

0 comments on commit 6b1fb7b

Please sign in to comment.