Fix for new prefetch key
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 28 Aug 2021 02:17:57 +0000 (14:17 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 28 Aug 2021 06:30:36 +0000 (18:30 +1200)
commit3d9604f05220bba810d58f2a4165b159083524e3
treeb3da63d325e837b90765070c11f56aab6f218c2a
parent743c4523571cfb3a86ebe6443fa250bbd16cf642
Fix for new prefetch key

Fixes a bug in
https://github.com/civicrm/civicrm-core/pull/21184
which was masked in the test by the lack of campaigns to load.

The ?? operator handles FALSE differently to the ?: operator
so this was casting FALSE to TRUE
CRM/Core/EntityTokens.php
Civi/Api4/Service/Spec/SpecFormatter.php
tests/phpunit/api/v4/Action/GetFieldsTest.php