Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev/core#704 Fix loss of links for recurrings with no payment_process…
…or_id In 5.8 changes were made that remove the cancel links from recurring payments where the payment processor object doesn't load. This is appropriate for cases where there IS a processor but it's disabled. However, it is not unknown for sites to import contribution_recur records from elsewhere as data records rather than 'functional records' & it is appropriate to be able to edit those. We already have a relevant patter - loading payment processor 0 loads the manual processor (class is CRM_Core_Manual) which has functionality appropriate to non-automated flows (also known as the paylater processor). This PR switches to the function CRM_Contribute_BAO_ContributionRecur::getPaymentProcessorObject which is a skinny wrapper on CRM_Contribute_BAO_ContributionRecur::getPaymentProcessor - which itself was not actually called from core prior to this change (we didn't remove it as it was better than functions in play & hence intended to start using it again). No processor is loaded for an inactive processor so links do not appear there.
- Loading branch information