From b566e2384544fcfabe5489894258244f0161f117 Mon Sep 17 00:00:00 2001 From: cdujeu Date: Tue, 15 Apr 2014 12:24:16 +0200 Subject: [PATCH] core.mailer: Make sure to add a typed email to the list of "to", if people don't explicitely click on the auto-complete list. (cherry picked from commit 9581bf0) --- core/src/plugins/core.mailer/class.AjxpMailer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/plugins/core.mailer/class.AjxpMailer.js b/core/src/plugins/core.mailer/class.AjxpMailer.js index 5b99e5c45b..798b093f07 100755 --- a/core/src/plugins/core.mailer/class.AjxpMailer.js +++ b/core/src/plugins/core.mailer/class.AjxpMailer.js @@ -100,11 +100,14 @@ Class.create("AjxpMailer", { } ); - return $("mailer_message"); }, postEmail : function(){ + var toField = this._mailerPane.down('#tofield'); + if(toField.getValue()){ + this.selectedLoginToSpan( toField.getValue(), toField.getValue() , false); + } var params = $H({get_action:"send_mail"}); this._mailerPane.down("form").getElements().each(function(el){ params.set(el.name, el.getValue());