Commit 6213b445 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Save sort order when loading project issues

This was previously done implicitly when we called the finder. Now that
we don't need the finder, we need to call this explicitly.
parent 05b3b1f5
......@@ -72,9 +72,12 @@ class Projects::IssuesController < Projects::ApplicationController
attr_accessor :vulnerability_id
def index
set_issuables_index if !html_request? || Feature.disabled?(:vue_issues_list, project&.group, default_enabled: :yaml)
@issues = @issuables
if html_request? && Feature.enabled?(:vue_issues_list, project&.group, default_enabled: :yaml)
set_sort_order
else
set_issuables_index
@issues = @issuables
end
respond_to do |format|
format.html
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment