APIv4 - convert Result object to array when running through json_encode
authorColeman Watts <coleman@civicrm.org>
Tue, 17 Mar 2020 19:09:16 +0000 (15:09 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Mar 2020 19:09:16 +0000 (15:09 -0400)
commite26fdc3faac5d57ab3e9466da68cde46a6cd69a7
treef8aa715b930a5c0783c61d2ad87d7f810c80aabe
parentcb1d83c931302919871a8bf5703473c44fd9dcd1
APIv4 - convert Result object to array when running through json_encode

Before: entire Result object was getting serialized leading to some weird output
After: only the array gets serialized
Civi/Api4/Generic/Result.php
tests/phpunit/api/v4/Action/ResultTest.php [new file with mode: 0644]