From 8a2038f2496d94e6c1d15e3be991f7347ab94bc1 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 17 Jul 2014 09:10:43 -0300 Subject: [PATCH] email_article: added profile param to send email link --- lib/email_article_plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email_article_plugin.rb b/lib/email_article_plugin.rb index f056f53..0c05c98 100644 --- a/lib/email_article_plugin.rb +++ b/lib/email_article_plugin.rb @@ -18,7 +18,7 @@ class EmailArticlePlugin < Noosfero::Plugin link_to_remote( label, { - :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page}, + :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page, :profile => @page.profile}, :method => :get, :success => "display_notice('" + _("Messages are being sent") + "')", :failure => "display_notice('" + _("Error sending emails") + "')", -- libgit2 0.21.2