Commit e344c9c77187b9f627f12cca8d7fdc48e1adbc6b

Authored by Gabriela Navarro
Committed by Luciano Prestes
1 parent 1b41bd07

Change redirect of new software to edit page

Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
controllers/mpog_software_plugin_myprofile_controller.rb
... ... @@ -24,7 +24,7 @@ class MpogSoftwarePluginMyprofileController &lt; MyProfileController
24 24 valid_license = (request.post? && @license_info.valid?)
25 25 if valid_software_info && valid_license && valid_community
26 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
  27 + redirect_to :controller => 'mpog_software_plugin_myprofile', :action => 'edit_software', :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}
... ...