Search Kit: DB Entity doesn't work with Data Segment
Overview
When you have fields with Data Segmentation and try to use the DB Entity, the search will never be saved in the database, it will stuck in neverending Saving status.
https://chat.civicrm.org/civicrm/pl/jkbfnoukuid38mhroyj1fer1mh
Reproduction steps
- Create a Data Segmentation
- Create a SK Search that includes the Data Segmentation previosly created
- Use the DB Entity and try to Save the search while selecting the Data Segmentation field.
Current behaviour
When you want to save the Search, the DB Entity it enters into an infinite saving status.
Via api4 you can see that the table is not created in the DB.
Expected behaviour
It saves the Search, create the Table in the DB and refresh the table with the content of the search.
Environment information
- CiviCRM: dmaster v.5.67.alpha1