-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23018 from colemanw/afformDeepSearch
SearchKit - Ensure filters work with multiple search displays on a form
- Loading branch information
Showing
4 changed files
with
218 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div> | ||
<div af-fieldset=""> | ||
<af-field name="source" /> | ||
<af-field name="Contact_Email_contact_id_01.location_type_id" defn="{input_attrs: {multiple: true}}" /> | ||
<crm-search-display-table search-name="TestContactEmailSearch" display-name="TestContactEmailDisplay"></crm-search-display-table> | ||
</div> | ||
<div af-fieldset=""> | ||
<!-- Filter is in wrong fieldset to work with `TestSearchForEmail`. See SearchAfformTest::testRunMultipleSearchForm --> | ||
<af-field name="email" /> | ||
<crm-search-display-table search-name="TestContactEmailSearch" display-name=""></crm-search-display-table> | ||
</div> | ||
</div> | ||
<div af-fieldset=""> | ||
<af-field name="contact_id.display_name" /> | ||
<af-field name="location_type_id" /> | ||
<crm-search-display-table search-name="TestSearchForEmail" display-name=""></crm-search-display-table> | ||
</div> | ||
<!-- This display is not enclosed in an af-fieldset so this filter will not work. See SearchAfformTest::testRunMultipleSearchForm --> | ||
<af-field name="location_type_id" /> | ||
<crm-search-display-table filters="{'contact_id.display_name': 'testRunMultipleSearchForm'}" search-name="TestSearchForPhone" display-name=""></crm-search-display-table> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"type": "search", | ||
"title": "TestMultipleSearchForm", | ||
"server_route": "", | ||
"permission": "access CiviCRM" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters