Commit 65cf8052 authored by Igor Kapkov's avatar Igor Kapkov Committed by Rémy Coutable

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

parent 4586d77c
......@@ -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
......
---
title: "Allow events filter to be set in the URL in addition to cookie"
merge_request: 21557
author: Igor @igas
type: added
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