fixed: crash on my/page_layout (trying to modify a frozen hash)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@258 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dd54b1aacb
commit
7b164b5cd4
|
@ -79,7 +79,7 @@ class MyController < ApplicationController
|
|||
# User's page layout configuration
|
||||
def page_layout
|
||||
@user = self.logged_in_user
|
||||
@blocks = @user.pref[:my_page_layout] || DEFAULT_LAYOUT
|
||||
@blocks = @user.pref[:my_page_layout] || DEFAULT_LAYOUT.dup
|
||||
session[:page_layout] = @blocks
|
||||
%w(top left right).each {|f| session[:page_layout][f] ||= [] }
|
||||
@block_options = []
|
||||
|
|
Loading…
Reference in New Issue