-
-
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
Fixed event type id fetch #14534
Fixed event type id fetch #14534
Conversation
(Standard links)
|
Any chance of a test.... |
Jenkins re test this please |
@pradpnayak Do we have an associated ticket or steps to replicate for this? |
jenkins retest this please |
@eileenmcnaughton i have pushed unit test for this. @yashodha I am not sure if its possible to replicate this from UI, but if you use CRM_Contact_BAO_Query() to find results with return property set to event_type_id then yes. |
@pradpnayak okay. Can you please squash all commits? |
Added unit test
273b0d5
to
e4bee5e
Compare
@yashodha i have squased the commits. |
retest this please |
test this please |
OK this has a test now which is all it was stuck on - merging |
Overview
When using query search the event type id is returned as option_value.id instead option_value.value.
Before
When using query search the event type id is returned as option_value.id instead option_value.value.
After
When using query search the event type id is returned as option_value.value
Technical Details
Changed the select clause to get event type id from civicrm_event.event_type_id and also avoided join to option value when fetching only event type id.