Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit sort_name as a url parameter on advanced search #14475

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 7, 2019

Overview

This lays the ground work for our metadata based approach to search forms in the contact form. Specifically it converts one field (sort_name) to be added by metadata and also to be supported via url (sort_name=x)

Before

Metadata based approach not extended to contact form

After

Approach extended - the one converted field is url-parseable

Technical Details

@monishdeb putting this up to show where I think we should be going on this

Comments

@civibot
Copy link

civibot bot commented Jun 7, 2019

(Standard links)

@civibot civibot bot added the master label Jun 7, 2019
@eileenmcnaughton eileenmcnaughton changed the title Convert sort_name to use search form methodology to pass by url Permit sort_name as a url parameter on advanced search Jun 7, 2019
* This virtual function is used to set the default values of various form elements.
*
* @return array|NULL
* reference to the array of default values
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to parent

@monishdeb
Copy link
Member

A baby step towards a larger goal. Nice :) Reviewing it now

@monishdeb
Copy link
Member

Yup thanks for fixing the test failure :)

@eileenmcnaughton
Copy link
Contributor Author

eileenmcnaughton commented Jun 7, 2019

@monishdeb we also need to do basic conversions on a couple more forms - pledge is here #14431 & I think Case & Membership remain

(I've been doing small PRs for the basic converstions just to get the right functions in play)

@monishdeb
Copy link
Member

@eileenmcnaughton I think such improvements will eventually help us to get the search by url params doable for all search forms right ?

@eileenmcnaughton
Copy link
Contributor Author

@monishdeb yes!

@eileenmcnaughton
Copy link
Contributor Author

@monishdeb you can see the PR that build on this - #14477 exposes sort_name but also some other fields that are already metadata-defined as url fields

@monishdeb
Copy link
Member

Am happy with this patch. Tested on my local and worked fine. Merging it now

@monishdeb monishdeb merged commit 885d7f7 into civicrm:master Jun 7, 2019
@eileenmcnaughton eileenmcnaughton deleted the contact_def branch June 7, 2019 06:47
@eileenmcnaughton
Copy link
Contributor Author

@monishdeb nice - I'll rebase that participant one then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants