CRM-18259 call pledge & pledgePayment specific functions for geting status options.
authoreileenmcnaugton <eileen@fuzion.co.nz>
Mon, 1 Aug 2016 00:56:44 +0000 (12:56 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Mon, 1 Aug 2016 01:12:26 +0000 (13:12 +1200)
commitab6ba136d0b1dde086dec756cc5d1297f3cfbb02
tree99b478dc01d55dd62a039ca2157d525780f5ce87
parent167bcb5fea005a879d172d0d3b985862db48dcb0
CRM-18259 call pledge & pledgePayment specific functions for geting status options.

The current config is to have a long list of contributions statuses which are shared as an option group
with pledge & pledge_payment. The irrelevant ones are then hacked out.

I believe that the correct way to do this is to split out the option groups into 3 separate ones.

However, there is quite a lot of work in re-pointing the various places that get the statuses from contributions.

So, I decided to limit this step to fixing the code to call the correct buildOptions function to get
the list & moving the hacks into there.

This does fix the original issue as the  status was being hacked out for pledge payment
when it should have been kept for pledge
CRM/Pledge/BAO/Pledge.php
CRM/Pledge/BAO/PledgePayment.php
CRM/Pledge/BAO/Query.php
CRM/Pledge/Form/Payment.php
CRM/Pledge/Form/Pledge.php
CRM/Pledge/Form/PledgeView.php
CRM/Pledge/Form/Search.php
CRM/Pledge/Selector/Search.php