-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Enable Case search metadata on Advanced Search Form #15928
Conversation
(Standard links)
|
It works just:
Interesting sidenote: I didn't think it would work but it DOES work to specify component_mode via url to show results as cases, but you need to know that the code is 2048. But there's other things like that too, e.g. case_type_id. |
@demeritcowboy @eileenmcnaughton i have just pushed a new commit which fixes the e-notice error but would appreciate especially Eileen's thinking on whether it is appropriate fix or not |
bc078e5
to
4fa1f51
Compare
@seamuslee001 so the ideal would be to remove that line - ie
CRM_Contact_Form_Search_Advanced called The issues are
I suspect we could mitigate the latter by removing the if (!empty($_POST) from the call to normalize form values & the former by having it still call $this-setFormValues where it currently does a
but within formValues have some mechanism so it only works once - ie. if (!$this->isSetFormValues....) & then set it at the end. |
4fa1f51
to
5e0866c
Compare
ok @eileenmcnaughton i have pulled out that 2nd commit now so i think this is more mergable now |
@seamuslee001 - I'm OK to merge this as I think we are already in a situation where we need to handle the LIKE e-notice before the rc is cut & we've started on that. This doesn't exacerbate that by much |
Merging as per tag. |
Overview
Enables urls like
civicrm/contact/search/advanced?reset=1&force=1&case_subject=test
to workBefore
Case parameters don't work on Advanced Search
After
Do work
ping @eileenmcnaughton @demeritcowboy
One thing tho the case_subject one does generate the notice
htmlspecialchars() expects parameter 1 to be string, array given in HTML_Common->_getAttrString() (line 144 of /home/seamus/buildkit/build/47-test/sites/all/modules/civicrm/packages/HTML/Common.php).
but only on Advanced Search with this PR.