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

Fixed event type id fetch #14534

Merged
merged 1 commit into from
Jul 28, 2019
Merged

Conversation

pradpnayak
Copy link
Contributor

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.

@civibot
Copy link

civibot bot commented Jun 14, 2019

(Standard links)

@civibot civibot bot added the master label Jun 14, 2019
@eileenmcnaughton
Copy link
Contributor

Any chance of a test....

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@yashodha
Copy link
Contributor

@pradpnayak Do we have an associated ticket or steps to replicate for this?

@pradpnayak
Copy link
Contributor Author

jenkins retest this please

@pradpnayak
Copy link
Contributor Author

@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.

@yashodha
Copy link
Contributor

yashodha commented Jul 5, 2019

@pradpnayak okay. Can you please squash all commits?

Added unit test
@pradpnayak
Copy link
Contributor Author

@yashodha i have squased the commits.

@pradpnayak
Copy link
Contributor Author

retest this please

@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

OK this has a test now which is all it was stuck on - merging

@eileenmcnaughton eileenmcnaughton merged commit f59b922 into civicrm:master Jul 28, 2019
@pradpnayak pradpnayak deleted the EventTypeQuery branch March 23, 2020 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants