From 981a76dca29f4005dbdf1565d8adbe15c8e14478 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Tue, 14 Oct 2014 11:43:38 -0300 Subject: [PATCH] Redirect to community edition page after new software --- controllers/mpog_software_plugin_myprofile_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/mpog_software_plugin_myprofile_controller.rb b/controllers/mpog_software_plugin_myprofile_controller.rb index 6dd9882..a964c6c 100644 --- a/controllers/mpog_software_plugin_myprofile_controller.rb +++ b/controllers/mpog_software_plugin_myprofile_controller.rb @@ -23,8 +23,8 @@ class MpogSoftwarePluginMyprofileController < MyProfileController valid_software_info = request.post? && @software_info.valid? valid_license = (request.post? && @license_info.valid?) if valid_software_info && valid_license && valid_community - @community = Community.create_after_moderation(user, {:environment => environment}.merge(params[:community]), @software_info, @license_info ) - redirect_to :controller => 'memberships', :action => 'index' + @community = Community.create_after_moderation(user, {:environment => environment}.merge(params[:community]), @software_info, @license_info ) + redirect_to :controller => 'profile_editor', :action => 'edit', :profile => @community.identifier unless params[:q].nil? admins = params[:q].split(/,/).map{|n| environment.people.find n.to_i} -- libgit2 0.21.2