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

Grab contribution status id from database #14713

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

pradpnayak
Copy link
Contributor

Overview

Grab contribution status id from database

Before

Hard coded to 1

After

Used CRM_Core_PseudoConstant::getKey() function to get completed status id

@civibot
Copy link

civibot bot commented Jul 2, 2019

(Standard links)

@eileenmcnaughton
Copy link
Contributor

I agree this is more correct & it's a straight forward pattern @pradpnayak is working on swapping out (presumably he finally hit the Db where we can't get away with our myriad hard-codings :-)

@eileenmcnaughton eileenmcnaughton merged commit b28c673 into civicrm:master Jul 2, 2019
@pradpnayak pradpnayak deleted the REF-1 branch July 3, 2019 07:07
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.

2 participants