Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unreachable customGroup section in online event receipt #19069

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 29, 2020

Overview

Remove unreachable customGroup section in online event receipt

Before

Section for including custom fields when assigned as $customGroup - but I can find no evidence nor think of a reason why it would be assigned.

After

The section is removed from the template - meaning it would not be present on new installs

Technical Details

After digging into #18697 I came to the
conclusion that currently both the online & offline event receipts have
sections for custom profiles and custom data (marked as customGroup).

The profiles are only assigned from the online flow and the data only from the offline
flow so in each receipt template one is unused.

I agree with the discussion on https://lab.civicrm.org/dev/core/-/issues/2076
that suggests that since every event has (potentially) assigned profiles
we could use those in both scenarios and never use the generic 'customGroup'.
The situation is less clear for contributions (where there is no profile
if there is no contribution page). Thus, I am inclined
to remove customGroup from the offline template too, after fixing to
include the profiles. However, there are additional
steps to get to the point where that is doable - at this stage I think
we CAN remove it from the online template because I cannot find anywhere
in the code where customGroup is assigned in that flow, nor logically
think of any reason other than copy and paste for it

Comments

After digging into civicrm#18697 I came to the
conclusion that currently both the online & offline event receipts have
sections for custom profiles and custom data (marked as customGroup).

The profiles are only assigned from the online flow and the data only from the offline
flow so in each receipt template one is unused.

I agree with the discussion on https://lab.civicrm.org/dev/core/-/issues/2076
that suggests that since every event has (potentially) assigned profiles
we could use those in both scenarios and never use the generic 'customGroup'.
The situation is less clear for contributions (where there is no profile
if there is no contribution page). Thus, I am inclined
to remove customGroup from the offline template too, after fixing to
include the profiles. However, there are additional
steps to get to the point where that is doable - at this stage I think
we CAN remove it from the online template because I cannot find anywhere
in the code where customGroup is assigned in that flow, nor logically
think of any reason other than copy and paste for it
@civibot
Copy link

civibot bot commented Nov 29, 2020

(Standard links)

@civibot civibot bot added the master label Nov 29, 2020
@monishdeb
Copy link
Member

Agree with the patch and tested on local to see if online event receipt passes the customGroup to message template, but not true. Confirmed that its safe to remove the unused section. Hence merging it.

@monishdeb monishdeb merged commit cb4c059 into civicrm:master Jan 10, 2021
@eileenmcnaughton eileenmcnaughton deleted the test branch January 10, 2021 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants