# The block is added on top of the page
# params[:block] : id of the block to add
def add_block
- @user = self.logged_in_user
block = params[:block]
+ render(:nothing => true) and return unless block && (BLOCKS.keys.include? block)
+ @user = self.logged_in_user
# remove if already present in a group
%w(top left right).each {|f| (session[:page_layout][f] ||= []).delete block }
# add it on top
http://redmine.rubyforge.org/\r
\r
\r
-== 02/18/2006 v0.4.2\r
+== xx/xx/2007 v0.4.3\r
+\r
+* fixed: error when clicking "add" with no block selected on my/page_layout\r
+\r
+\r
+== 02/18/2007 v0.4.2\r
\r
* Rails 1.2 is now required\r
* settings are now stored in the database and editable through the application in: Admin -> Settings (config_custom.rb is no longer used)\r
* fixed: crash when a new user try to edit its "my page" layout\r
\r
\r
-== 01/03/2006 v0.4.1\r
+== 01/03/2007 v0.4.1\r
\r
* fixed: emails have no recipient when one of the project members has notifications disabled\r
\r
\r
-== 01/02/2006 v0.4.0\r
+== 01/02/2007 v0.4.0\r
\r
* simple SVN browser added (just needs svn binaries in PATH)\r
* comments can now be added on news\r