#@issue.assigned_to_id = (params[:issue][:assigned_to_id])\r
#@issue.done_ratio = (params[:issue][:done_ratio])\r
#@issue.lock_version = (params[:issue][:lock_version])\r
- @issue.init_journal(self.logged_in_user, params[:notes])\r
+ journal = @issue.init_journal(self.logged_in_user, params[:notes])\r
@issue.status = @new_status\r
if @issue.update_attributes(params[:issue])\r
flash[:notice] = l(:notice_successful_update)\r
- Mailer.deliver_issue_change_status(@issue) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?\r
+ Mailer.deliver_issue_edit(journal) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?\r
redirect_to :action => 'show', :id => @issue\r
end\r
rescue ActiveRecord::StaleObjectError\r
# along with this program; if not, write to the Free Software\r
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
\r
-class Mailer < ActionMailer::Base
+class Mailer < ActionMailer::Base\r
+\r
+ helper IssuesHelper
def issue_add(issue)
# Sends to all project members
Issue #<%= @issue.id %> has been updated.\r
<%= @journal.user.name %>\r
<% for detail in @journal.details %>\r
-<%= show_detail(detail) %>\r
+<%= show_detail(detail, true) %>\r
<% end %>\r
<%= @journal.notes if @journal.notes? %>\r
----------------------------------------\r
Issue #<%= @issue.id %> has been updated.\r
<%= @journal.user.name %>\r
<% for detail in @journal.details %>\r
-<%= show_detail(detail) %>\r
+<%= show_detail(detail, true) %>\r
<% end %>\r
<%= @journal.notes if @journal.notes? %>\r
----------------------------------------\r
Issue #<%= @issue.id %> has been updated.\r
<%= @journal.user.name %>\r
<% for detail in @journal.details %>\r
-<%= show_detail(detail) %>\r
+<%= show_detail(detail, true) %>\r
<% end %>\r
<%= @journal.notes if @journal.notes? %>\r
----------------------------------------\r
La demande #<%= @issue.id %> a été mise à jour.\r
<%= @journal.user.name %> - <%= format_date(@journal.created_on) %>\r
<% for detail in @journal.details %>\r
-<%= show_detail(detail) %>\r
+<%= show_detail(detail, true) %>\r
<% end %>\r
<%= journal.notes if journal.notes? %>\r
----------------------------------------\r