summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-18 14:59:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-18 14:59:06 +0000
commit7b164b5cd41ec0cad04dbeefe7f85611d5eecffd (patch)
treed7f17d2fb2e5a1f059d73646e4203bdf6b0437f1
parentdd54b1aacbebc92a5c3782981d0e23caf3771f65 (diff)
downloadredmine-7b164b5cd41ec0cad04dbeefe7f85611d5eecffd.tar.gz
redmine-7b164b5cd41ec0cad04dbeefe7f85611d5eecffd.zip
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
-rw-r--r--app/controllers/my_controller.rb2
1 files changed, 1 insertions, 1 deletions
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 = []