From 7b164b5cd41ec0cad04dbeefe7f85611d5eecffd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Feb 2007 14:59:06 +0000 Subject: [PATCH] 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 --- app/controllers/my_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index fcb3d2617..f3d1b2a72 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -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 = []