:notice_email_sent requires 2 paramters (To: being the second) (plugin tends to override this

by its own notice_ messages, but probably core definition will prevail.
This commit is contained in:
root 2013-06-20 16:09:15 +02:00
parent 3ddddd6855
commit 810f4e2a8e

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
@ -75,7 +76,7 @@ class DmsfController < ApplicationController
DmsfMailer.send_documents(User.current, @email_params["to"], @email_params["cc"],
@email_params["subject"], @email_params["zipped_content"], @email_params["body"]).deliver
File.delete(@email_params["zipped_content"])
flash[:notice] = l(:notice_email_sent)
flash[:notice] = l(:notice_email_sent, @email_params["to"])
redirect_to({:controller => "dmsf", :action => "show", :id => @project, :folder_id => @folder})
end