-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Add support for receipt task outside the search process #19848
Conversation
(Standard links)
|
4abdc91
to
012c04c
Compare
e4dbe69
to
ac8d38b
Compare
@colemanw this is now a fairly direct path towards starting to add contribution actions to search kit results. I haven't figured out what to do about the pdf not working in a modal yet though. |
Ah, the old pdf-download-from-a-dialogue issue. I remember it well. civicrm-core/CRM/Event/Form/Task/Badge.php Lines 69 to 73 in bc77d7c
(note that setting only affects dialogs) |
Adds controller for id based tasks Supports a url like https://dmaster.localhost:32353/civicrm/contribute/task?task=receipt&id=40,41 Note the pdf option doesn't work in pop-up mode - to discuss Also note this exposes it as an action on the contribution results. That's optional. I think it has been requested / would be useful but it's mostly included to make the page accessible for testing and to work through the issue around filtering - the action only works on some statuses
@colemanw that works. I think this is mergeable now although I think the contract around describing the links (getContextualLinks) could change and we haven't actually had the discussion about exposing the ability to send a receipt from the contribution tab (I tend to see it as a missing feature but I can't assume everyone else would) I'm open to leaving this until after the rc is cut to give us more flexibility |
Sounds good |
(CiviCRM Review Template WORD-1.2)
* I note that the class structure for this standalone Contribution is different than the standalone Contact actions. They each implemented their own menu route while this uses a generic route with a |
While not directly related to this PR, I imagine that folks reading this later may be interested in Fast Action Links plus Fast Action PDF. I wrote Fast Action PDF to allow generating PDF thank-you letters from the contributions tab. The difference between this approach and Fast Action PDF is in the number of clicks. If you always use the same 1 or 2 templates, it's valuable to create a PDF in a single click. This PR gives more flexibility at creation time, but takes more clicks. |
@MegaphoneJon cool yes - that does sound like it would be much appreciated by some users |
Overview
Adds support for url-based receipt sending - eg.
https://dmaster.localhost/civicrm/contribute/task?task=receipt&id=40,41
Before
Receipt functionality deeply tied to search process
After
Technical Details
@colemanw this is a first step towards adding more search tasks. I probably need to revisit it a little myself & do more testing but it builds on the cleanup I did a while back towards this
I exposed the action on the contribution tab of a contact - partly because it has been requested in the past but mostly to highlight this change & also the challenges - notably
*** I renamed from Receipt to Send Receipt so the above screenshot is a bit superceded ***
Comments
Remember to do a menu rebuild if you pull locally