Commit eccaa099 authored by Rubén Dávila's avatar Rubén Dávila

Make cookie suffix more simpler.

parent 0f79620c
...@@ -409,8 +409,8 @@ class ApplicationController < ActionController::Base ...@@ -409,8 +409,8 @@ class ApplicationController < ActionController::Base
private private
def set_default_sort def set_default_sort
controller_name = params[:controller].sub(/Controller\Z/, '').underscore # Use the controller name so we have a distinct cookie for Issues, MRs and Dashboard
cookie_suffix = "_sort_#{controller_name}" cookie_suffix = "_sort_#{params[:controller].underscore}"
key = "#{(@project || @group || current_user).cookie_key}#{cookie_suffix}" key = "#{(@project || @group || current_user).cookie_key}#{cookie_suffix}"
......
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