Proposal: Store Contribution Page ID in the `civicrm_contribution_recur` table
Overview
When a recurring contribution is created with a contribution page. Also store the contribution page ID in the civicrm_contribution_recur
table.
This works already for 'normal' contribution.
Example use-case
- CiviRules can be used when a new Contribution Recur is added and a condition can then be used which Contribution Page this came from.
Current behaviour
Currently for the 'normal' contributions the contribution page ID is stored in the civicrm_contribution
table.
Proposed behaviour
- Add a column to the
civicrm_contribution_recur
table calledcontribution_page_id
- When a contribution recur is added through a Contribution Page then store the contribution page id into this column
- Optional we can show the data from this field in the user interface when a user views a contribution recur
Workaround
There is a workaround with an extension: https://lab.civicrm.org/extensions/storecontributionpageidoncontribrecur
Edited by jaapjansma