Advanced Search returns contacts in Trash even if 'Search in Trash' not ticked.
Overview
Advanced Search returns deleted contacts (i.e. contacts in Trash) even if the 'Search in Trash' is not ticked. Also, the Search results don't appear to know that the contact is deleted.
Reproduction steps
- Click on Advanced Search.
- Do not tick Search in Trash.
- Click on "Search".
Current behaviour
Deleted contacts are returned in the list.
and
shows that the contact is in Trash.
Expected behaviour
Deleted contacts should not appear in the list.
Environment information
- Browser: Irrelevant
- CiviCRM: 5.27.0 but also appears in 5.29.alpha1
- PHP: Irrelevant_
- CMS: Joomla 3.9.6 but probably irrelevant
- Database: MySQL 5.7.30 but probably irrelevant
- Web Server: Irrelevant
Comments
It was introduced in 5.27.0. 5.26.2 does not show this behaviour.