From 810f4e2a8e1c41c32e0498cff0b47da4255e4ee7 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Jun 2013 16:09:15 +0200 Subject: [PATCH] :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. --- app/controllers/dmsf_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/dmsf_controller.rb b/app/controllers/dmsf_controller.rb index 579ca759..e3f0e08f 100644 --- a/app/controllers/dmsf_controller.rb +++ b/app/controllers/dmsf_controller.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Redmine plugin for Document Management System "Features" # # Copyright (C) 2011 Vít Jonáš @@ -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