Skip to content

Commit

Permalink
Fix for going to the wizard to create a blog. Was missing the version
Browse files Browse the repository at this point in the history
id after creating a blog.
  • Loading branch information
Doug Youch authored and cykod committed Jul 25, 2010
1 parent 66ac7bb commit 7fa44dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/modules/blog/app/controllers/blog/admin_controller.rb
Expand Up @@ -45,7 +45,8 @@ def create
if(request.post? && params[:blog])
if(@blog.save)
if !@blog.add_to_site.blank?
redirect_to :controller => '/blog/wizard', :blog_id => @blog.id
@version = SiteVersion.current
redirect_to :controller => '/blog/wizard', :blog_id => @blog.id, :version => @version.id
return
else
redirect_to :controller => '/blog/manage', :path => @blog.id
Expand Down

0 comments on commit 7fa44dc

Please sign in to comment.