Stop passing / using object when all we need is the id
authoreileen <emcnaughton@wikimedia.org>
Thu, 3 Sep 2020 00:08:50 +0000 (12:08 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 3 Sep 2020 20:12:27 +0000 (08:12 +1200)
commiteed14abbc29fe6b02e3168e65d5e1bffc5e0a614
tree7c990bf19287972b39458857ce8bd0af17e0c215
parentd42a0ae4db8c9acf90fadb85e0faa246eade3ac3
Stop passing / using object when all we need is the id

Rather than set id on the contribution object just to be able to access it via contribution->id
let's name the param we keep using & use that. Note I'm still getting contribution->id from contribution
here but I think this makes it clear that the object is mostly only used in addActivity now.

The sligtly larger change is in updateMembershipBasedOnCompletionOfContribution where there is
an instantiation of 'self()' since we no longer have the object
CRM/Contribute/BAO/Contribution.php