Fix calls to wrong API function in "UpdateNumericValue.php"

michael_l requested to merge michael_l/civirules:master into master

I'm on Civi 5.28.3 and CiviRules 2.17, and I was running into some problems where the "Update Numeric Value" action wasn't firing even though the rule was being triggered.

After poking around a bit, the culprit was "getValue" not correctly returning the field's value from the database. I switched the internal calls from civicrm_api to civicrm_api3, and that seemed to fix it.

The action that wasn't working for me was:

  • Source Field: Field 'X' (Group 'Y')
  • Target Field: Field 'X' (Group 'Y')
  • Opration: Increase by
  • Operand: 1

Merge request reports