Skip to content
Snippets Groups Projects
Unverified Commit 65cf8052 authored by Igor Kapkov's avatar Igor Kapkov Committed by Rémy Coutable
Browse files

Allow events filter to be set in the URL in addition to cookie

parent 4586d77c
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -275,6 +275,7 @@ class ApplicationController < ActionController::Base
def event_filter
# Split using comma to maintain backward compatibility Ex/ "filter1,filter2"
filters = cookies['event_filter'].split(',')[0] if cookies['event_filter'].present?
filters = params[:event_filter].split(',')[0] if params[:event_filter].present?
@event_filter ||= EventFilter.new(filters)
end
 
Loading
Loading
---
title: "Allow events filter to be set in the URL in addition to cookie"
merge_request: 21557
author: Igor @igas
type: added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment