SearchKit - Remove irrelevant links from default display
authorcolemanw <coleman@civicrm.org>
Fri, 2 Feb 2024 22:02:31 +0000 (17:02 -0500)
committercolemanw <coleman@civicrm.org>
Fri, 2 Feb 2024 22:02:31 +0000 (17:02 -0500)
commitdc4e57b4058fff54f7b39f3a70c3b6d7dba2ad06
tree8c05c95882e29cef31c0e0d02d26345449ed204e
parent96e27fc0aa36c19df07df3d1bb003d2ffff58f9d
SearchKit - Remove irrelevant links from default display

The action regressed when switching search displays to use the GetLinks api action.
This fixes the filtering & makes it more efficient by passing the filter to the api.
ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php
ext/search_kit/Civi/Search/Display.php
ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php