Links with null data arguments are not displayed in SearchKit displays
Overview
A link item required in a List or Table display item in SearchKit will not be output if any data item or items in the link is/are missing. This issue arises from the following question asked on StackOverflow. See: Why are SearchKit links blank if a data item is missing?
Reproduction steps
- Create a simple webform to edit aspects of a case type, ensuring you have more than one contact ID or activity ID update
- Create a SearchKit search that lists the cases of that type and add a custom link to the webform, passing in the arguments link case ID, contact ID etc
- Ensure some data is null in a couple of your cases
- Look at the output of SearchKit links thst have data items missing
Current behaviour
A user viewing the SearchKit display will not see links - see screenshot:
Expected behaviour
I believe every link should be output, regardless of the null data. This is the current behaviour of the Drupal Views we use for the same purposes
Environment information
CiviCRM: 5.9.3
PHP: 7.4.3
CMS: Drupal 7.95
Database: MySQL 5.7.35
Web Server: Apache 2.4.38