fulcrumapp / fulcrum-expressions

Fulcrum expressions engine
http://developer.fulcrumapp.com/expressions/intro/
5 stars 0 forks source link

Fix APPLYFIELDEFFECTS only using last effect #53

Closed jahndis closed 2 years ago

jahndis commented 2 years ago

https://fulcrumapp.atlassian.net/browse/FLCRM-8695

This fixes APPLYFIELDEFFECTS so that it uses the correct value of each effect in the ON callbacks.

This was done by moving the ON callback creation into its own function so that the closure captured the current effect value as we iterated over the list.

Testing: