"Contribution Recur Count" condition is broken or description is incorrect
The description of the class CRM_CivirulesConditions_ContributionRecur_Count
says: This CiviRule condition will check for the xth contribution resulting from a recurring contribution
. However, the SQL of that rule looks for how many recurring contributions came from that contact, not the recurring contribution. So given a contact Jane Doe who had a recurring subscription and made 12 donations - if they start a new recurring contribution, the first donation under that subscription would have a count of 13, not 1.
I'm not sure if the description is incorrect or the SQL is incorrect. I'd love to fix this, but not sure which way to go.