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

Make send letter function available to searchkit, individual contributions #20187

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Make send letter function available to searchkit, individual contributions

Before

Send (thank you) letter function only available from search display results

After

Available from search kit & individual contribution rows

Technical Details

If there are no contribution tokens this enotice is hit #20178 (pre-existing)

@demeritcowboy I thought there was another issue with getSingle but this seemed to work fine so maybe it was ^^

Comments

@civibot civibot bot added the master label Apr 29, 2021
@civibot
Copy link

civibot bot commented Apr 29, 2021

(Standard links)

@seamuslee001
Copy link
Contributor

This looks fine to me but will leave this to @demeritcowboy for formal review

<tr>
<td class="label-left">{$form.group_by.label} {help id="id-contribution-grouping"}</td>
<td>{$form.group_by.html}</td>
</tr>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't have this on the template then you get a different type of notice in "single" mode: Notice: Undefined index: group_by in CRM_Contribute_Form_Task_PDFLetter->postProcess() (line 177 of .../CRM/Contribute/Form/Task/PDFLetter.php).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@demeritcowboy I hit that enotice writing the test in another PR & added this line to the other PR that addresses https://github.com/civicrm/civicrm-core/pull/20188/files#diff-32b6d0d15de0f43a21f476f94999902d89e3498fc00ee55e4c817ec767a4d42fR179

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.
The "other issue" referred to in the original description here I think was that an intermediate version of #20161 had more manipulating of contribution ids and it was giving buildContributionArray a null.

@demeritcowboy demeritcowboy merged commit 7e352f3 into civicrm:master Apr 30, 2021
@eileenmcnaughton eileenmcnaughton deleted the dom branch April 30, 2021 21:46
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.

3 participants