mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Link call node cannot call a link in a subflow
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
		| @@ -2419,12 +2419,13 @@ RED.nodes = (function() { | ||||
|                     if (otherNode.z === n.z) { | ||||
|                         // Both ends in the same flow/subflow | ||||
|                         return true | ||||
|                     } else if (n.type === "link call") { | ||||
|                         // Link call node can call out of a subflow | ||||
|                         return true | ||||
|                     } else if (n.type === "link call" && !!getSubflow(otherNode.z)) { | ||||
|                         // Link call node can call out of a subflow as long as otherNode is | ||||
|                         // not in a subflow | ||||
|                         return false | ||||
|                     } else if (!!getSubflow(n.z) || !!getSubflow(otherNode.z)) { | ||||
|                         // One end is in a subflow - remove the link | ||||
|                         return false                         | ||||
|                         return false | ||||
|                     } | ||||
|                     return true | ||||
|                 }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user