mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update file, http and email nodes to only show deprecation warning
if msg property is a real overide to node property ( !== ). Fix for comment by @drJeckyll to Issue #399
This commit is contained in:
@@ -72,7 +72,7 @@ module.exports = function(RED) {
|
||||
if (smtpTransport) {
|
||||
node.status({fill:"blue",shape:"dot",text:"sending"});
|
||||
var payload = RED.util.ensureString(msg.payload);
|
||||
if (msg.to && node.name) {
|
||||
if (msg.to && node.name && (msg.to !== node.name)) {
|
||||
node.warn("Deprecated: msg properties should not override set node properties. See bit.ly/nr-override-msg-props");
|
||||
}
|
||||
smtpTransport.sendMail({
|
||||
|
Reference in New Issue
Block a user