lib/contrast/agent/assess/policy/propagator/insert.rb in contrast-agent-3.15.0 vs lib/contrast/agent/assess/policy/propagator/insert.rb in contrast-agent-3.16.0
- old
+ new
@@ -17,10 +17,10 @@
# We assume that insert changes the preshift target
def propagate propagation_node, preshift, target
properties = Contrast::Agent::Assess::Tracker.properties(target)
return unless properties
- source = find_source(propagation_node.sources[0], preshift)
+ source = find_source(propagation_node.sources[1], preshift)
patcher_target = propagation_node.targets[0]
preshift_target = case patcher_target
when Contrast::Utils::ObjectShare::OBJECT_KEY
preshift.object