CRM-18259 determine presence of linked contributions more directly.
authoreileenmcnaugton <eileen@fuzion.co.nz>
Sat, 6 Aug 2016 01:34:40 +0000 (13:34 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Sat, 6 Aug 2016 02:46:45 +0000 (14:46 +1200)
commite2a918bf2d53e75da5b11777bd4a81adfd1a87ab
treeb4713a0ee56f2f3b03d3e5d86cd2f61a85a61baa
parent1c0174c97a9e5fafac3adc7f775b3673612ef231
CRM-18259 determine presence of linked contributions more directly.

The presence of pledge_payments with 'transactional statuses' was being
used to
determine the presence of contributions to avoid deleting - but
this stopped working with the other changes on this ticket as 'Pending'
is not supposedly valid for pledge payments - at least not
according to the definition for the search screen.

This is a better way to determine the presence of contributions anyway
CRM/Pledge/BAO/Pledge.php