-
-
Notifications
You must be signed in to change notification settings - Fork 829
Use Case form for case email action #21688
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
Conversation
(Standard links)
|
2ca918e
to
6420467
Compare
6420467
to
dcecc49
Compare
@demeritcowboy I think this time I might have nailed moving the case stuff to it's own action form |
Ok will take a look. |
thanks @demeritcowboy |
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
I've been playing with this a bit. Found my notes about the url params: https://lab.civicrm.org/dev/core/-/issues/2463 Something else is now messing with the regular email form and it gives errors about count() for contactIds. Must be recent. Let's see... |
I think it's this one: #21680 |
@demeritcowboy argh - is it unchanged by this PR? |
Applying this PR doesn't change the error. |
I think the other one is simple, just checking closer. |
@demeritcowboy FYI the 3 threads I'm working on are
|
@demeritcowboy so I'm guessing your other PR fixed ^^ |
This simplifies the code to 'listtokens' across most of the pdf & email classes. The case tokens are a bit of a hold out as ideally we would have one function on CRM_Case_Form_Task which email & pdf would use but we are still getting to that point - see civicrm#21688
Yes. Will try to finish this today. |
thanks @demeritcowboy - do you agree that I probably need to conditionally group by contact id to extend tokens to participant / member for email? https://lab.civicrm.org/dev/core/-/issues/2862 |
So this is really close but it does break the situation where you have Email configured in your case activity list dropdown on Manage Case, which is the other way to reach this task. In that situation there is no cid to start, but now it's somehow setting it to an array and it ends up with the reverse situation as the other problem earlier where now it wants null instead, and then you get an error. I think I'd be ok to merge but not to release it this way. jenkins retest this please |
@demeritcowboy do you know what the fix is for that? |
I haven't looked close but line 207 isn't expecting an empty array, and to avoid that normally it's null so it doesn't enter the |
|
@demeritcowboy ah yeah - that's in code that is munged into preProcess too - ideally we would extract |
Well merging this & we can track down that last little bit next |
Overview
Use Case specific email action form for case email action
Before
Handling for the case email action is overloaded onto the contact email action
After
it has it's own class
Technical Details
Comments