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:
Jean-Philippe Lang 2007-02-18 14:59:06 +00:00
parent dd54b1aacb
commit 7b164b5cd4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class MyController < ApplicationController
# User's page layout configuration # User's page layout configuration
def page_layout def page_layout
@user = self.logged_in_user @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 session[:page_layout] = @blocks
%w(top left right).each {|f| session[:page_layout][f] ||= [] } %w(top left right).each {|f| session[:page_layout][f] ||= [] }
@block_options = [] @block_options = []