Commit 981a76dca29f4005dbdf1565d8adbe15c8e14478
Committed by
Fabio Teixeira
1 parent
b0ee4ffb
Exists in
master
and in
5 other branches
Redirect to community edition page after new software
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
controllers/mpog_software_plugin_myprofile_controller.rb
... | ... | @@ -23,8 +23,8 @@ class MpogSoftwarePluginMyprofileController < MyProfileController |
23 | 23 | valid_software_info = request.post? && @software_info.valid? |
24 | 24 | valid_license = (request.post? && @license_info.valid?) |
25 | 25 | if valid_software_info && valid_license && valid_community |
26 | - @community = Community.create_after_moderation(user, {:environment => environment}.merge(params[:community]), @software_info, @license_info ) | |
27 | - redirect_to :controller => 'memberships', :action => 'index' | |
26 | + @community = Community.create_after_moderation(user, {:environment => environment}.merge(params[:community]), @software_info, @license_info ) | |
27 | + redirect_to :controller => 'profile_editor', :action => 'edit', :profile => @community.identifier | |
28 | 28 | |
29 | 29 | unless params[:q].nil? |
30 | 30 | admins = params[:q].split(/,/).map{|n| environment.people.find n.to_i} | ... | ... |