##// END OF EJS Templates
fixed: error when clicking "add" with no block selected on my/page_layout...
Jean-Philippe Lang -
r258:4f2d74e25f00
parent child
Show More
@@ -90,8 +90,9 class MyController < ApplicationController
90 90 # The block is added on top of the page
91 91 # params[:block] : id of the block to add
92 92 def add_block
93 @user = self.logged_in_user
94 93 block = params[:block]
94 render(:nothing => true) and return unless block && (BLOCKS.keys.include? block)
95 @user = self.logged_in_user
95 96 # remove if already present in a group
96 97 %w(top left right).each {|f| (session[:page_layout][f] ||= []).delete block }
97 98 # add it on top
@@ -5,7 +5,12 Copyright (C) 2006-2007 Jean-Philippe Lang
5 5 http://redmine.rubyforge.org/
6 6
7 7
8 == 02/18/2006 v0.4.2
8 == xx/xx/2007 v0.4.3
9
10 * fixed: error when clicking "add" with no block selected on my/page_layout
11
12
13 == 02/18/2007 v0.4.2
9 14
10 15 * Rails 1.2 is now required
11 16 * settings are now stored in the database and editable through the application in: Admin -> Settings (config_custom.rb is no longer used)
@@ -33,12 +38,12 http://redmine.rubyforge.org/
33 38 * fixed: crash when a new user try to edit its "my page" layout
34 39
35 40
36 == 01/03/2006 v0.4.1
41 == 01/03/2007 v0.4.1
37 42
38 43 * fixed: emails have no recipient when one of the project members has notifications disabled
39 44
40 45
41 == 01/02/2006 v0.4.0
46 == 01/02/2007 v0.4.0
42 47
43 48 * simple SVN browser added (just needs svn binaries in PATH)
44 49 * comments can now be added on news
General Comments 0
You need to be logged in to leave comments. Login now