Commit cdfd3ecbe2f16aea90ec4680e7f8c320bfb64d90
1 parent
b51a1f3a
Exists in
master
and in
9 other branches
Redirect to suggest article when discussion is moderated
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb
... | ... | @@ -19,7 +19,7 @@ class ProposalsDiscussionPluginMyprofileController < MyProfileController |
19 | 19 | if @discussion.allow_create?(current_person) |
20 | 20 | redirect_to :controller => 'cms', :action => 'new', :type => "ProposalsDiscussionPlugin::Proposal", :parent_id => params[:parent_id] |
21 | 21 | else |
22 | - render 'proposals_discussion_plugin_myprofile/suggest_proposal' | |
22 | + redirect_to :controller => 'cms', :action => 'suggest_an_article', :task => {:article => {:type => "ProposalsDiscussionPlugin::Proposal", :parent_id => params[:parent_id]}}, :back_to => url_for(@discussion.view_url) | |
23 | 23 | end |
24 | 24 | end |
25 | 25 | ... | ... |