Remove category from case activity template #22530
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Remove category from case activity template
Before
The empty checks for `$activity['fields']['category'] cause enotices when smarty is in strict mode
After
I removed references to the parameters
Technical Details
@demeritcowboy I originally thought to ensure this was assigned - but I can't find anywhere where it is set outside the Audit report code
CRM_Case_Audit_Audit
that seems to use a different template so am suggesting just removing from the template. Note that I will regenerate the sql (before or after this is merged) if agreed but I won't do any upgrade changes as it's not going to matter for existing sites if it already is always empty & they are unlikely to see the notice anyway so we can wait for a more material changeComments
This is not the only potential variable issue in this tpl -but there is enough complexity in confirming this change I kept it alone