Skip to content

Commit

Permalink
Use report default options for Report screens
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSpagetka committed Oct 15, 2018
1 parent 043448b commit fb2ae5a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,14 @@ def get_view_process_search_text(view)
end

def perpage_key(dbname)
%w(job miqtask).include?(dbname) ? :job_task : PERPAGE_TYPES[@gtl_type]
case dbname
when "miqreportresult"
:reports
when "job", "miqtask"
:job_task
else
PERPAGE_TYPES[dbname]
end
end

# Create view and paginator for a DB records with/without tags
Expand Down

0 comments on commit fb2ae5a

Please sign in to comment.