mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	join node - honour 3.x behaviour for old instances.
but don't use msg.parts for new instances in manual join mode unless set.
This commit is contained in:
		| @@ -266,6 +266,12 @@ | ||||
|         }, | ||||
|         oneditprepare: function() { | ||||
|             var node = this; | ||||
|             $("#node-input-useparts").on("change", function(e) { | ||||
|                 if (node.useparts === undefined) { | ||||
|                     node.useparts = true; | ||||
|                     $("#node-input-useparts").attr('checked', true); | ||||
|                 } | ||||
|             }); | ||||
|  | ||||
|             $("#node-input-mode").on("change", function(e) { | ||||
|                 var val = $(this).val(); | ||||
|   | ||||
| @@ -444,7 +444,8 @@ module.exports = function(RED) { | ||||
|         this.count = Number(n.count || 0); | ||||
|         this.joiner = n.joiner||""; | ||||
|         this.joinerType = n.joinerType||"str"; | ||||
|         this.useparts = n.useparts || false; | ||||
|         if (n.useparts === undefined) { this.useparts = true; } | ||||
|         else { this.useparts = n.useparts || false; } | ||||
|  | ||||
|         this.reduce = (this.mode === "reduce"); | ||||
|         if (this.reduce) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user