Manually fix SearchKit searches broken by SK bug issue 5817

This commit is contained in:
Rich Lott / Artful Robot 2025-04-02 12:14:01 +01:00
parent 486b914425
commit 5e77bf3938
2 changed files with 5 additions and 19 deletions

View file

@ -30,19 +30,13 @@ return [
[ [
'Contribution AS Contact_Contribution_contact_id_01', 'Contribution AS Contact_Contribution_contact_id_01',
'INNER', 'INNER',
[ ['id', '=', 'Contact_Contribution_contact_id_01.contact_id',
'id',
'=',
'Contact_Contribution_contact_id_01.contact_id',
], ],
], ],
], ],
'having' => [ 'having' => [
[ ['MAX_Contact_Contribution_contact_id_01_receive_date', '<=', 'now - 36 month'],
'MAX_Contact_Contribution_contact_id_01_receive_date', ['MAX_Contact_Contribution_contact_id_01_total_amount', '>=', '500'],
'<=',
'now - 36 month',
],
], ],
], ],
'description' => E::ts('Expired major donor. Last donation 36+ months before today 'description' => E::ts('Expired major donor. Last donation 36+ months before today

View file

@ -35,16 +35,8 @@ return [
], ],
], ],
'having' => [ 'having' => [
[ ['MAX_Contact_Contribution_contact_id_01_total_amount', '>=', '500'],
'MAX_Contact_Contribution_contact_id_01_total_amount', ['MAX_Contact_Contribution_contact_id_01_receive_date', 'BETWEEN', ['now - 36 month', 'now - 12 month']],
'=',
'',
],
[
'MAX_Contact_Contribution_contact_id_01_receive_date',
'BETWEEN',
['now - 36 month', 'now - 12 month'],
],
], ],
], ],
'description' => E::ts('Major donor: critical 'description' => E::ts('Major donor: critical