APIv4 - Fix passing '0' as a function argument
authorcolemanw <coleman@civicrm.org>
Sun, 11 Jun 2023 19:20:45 +0000 (15:20 -0400)
committercolemanw <coleman@civicrm.org>
Sun, 11 Jun 2023 19:20:45 +0000 (15:20 -0400)
commit4e8860a0bb4b7c8dfa5649a551454763dec33288
tree43e5c8b7c1628a3a56a88f0574e3be667c888d2a
parentcf36e07da4ba9a516d78e7304c05b0cfa6234a8c
APIv4 - Fix passing '0' as a function argument

Before: "CRM_Core_Exception : Too few arguments to param 3 for SQL function IF"

After: Function works with '0' as an argument.
Civi/Api4/Query/SqlExpression.php
tests/phpunit/api/v4/Action/SqlFunctionTest.php