dev/core#2079 [REF] clean up call to apiQuery
authoreileen <emcnaughton@wikimedia.org>
Fri, 2 Oct 2020 20:59:47 +0000 (09:59 +1300)
committereileen <emcnaughton@wikimedia.org>
Sat, 3 Oct 2020 00:52:46 +0000 (13:52 +1300)
commit64c57b7207e3af5c73ac4df38310c01e6d4754bc
tree942e3170f8230380a688c69d4707b91ddbb32ee2
parent08642a59c721fc709053fb3ba9a9be4bcdccff2c
dev/core#2079 [REF] clean up call to apiQuery

    This fixes
    1) fixes apiQuery to be called statically as it is a static function
    2) casts results directly to detail

This is the copy & paste source of https://github.com/civicrm/civicrm-core/pull/18664 I guess....
CRM/Contact/Form/Task/Label.php
tests/phpunit/CRM/Contact/Form/Task/PrintMailingLabelTest.php