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 category from case activity template #22530

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 17, 2022

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 change

Comments

This is not the only potential variable issue in this tpl -but there is enough complexity in confirming this change I kept it alone

@civibot
Copy link

civibot bot commented Jan 17, 2022

(Standard links)

@civibot civibot bot added the master label Jan 17, 2022
@demeritcowboy
Copy link
Contributor

I'm not at a computer right now but maybe for the compucorp extension which has something about categories?

I can't imagine message templates being related to the 'audit' code.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy if it DOES relate to the compucorp extension then I think it's fine to remove from the core default message template - there is a small chance the extension or some people might edit it back in & I'm not proposing to auto-remove from existing installs (or even notify people to consider manual updating at this stage)

@demeritcowboy
Copy link
Contributor

I don't really remember this, but am pretty convinced now it was from an early version of the xml spec. And this ticket sort of supports that: https://issues.civicrm.org/jira/browse/CRM-3847

i.e. you used to be able to specify a category for each activity type in the xml.

@demeritcowboy demeritcowboy merged commit 9b1fae0 into civicrm:master Jan 17, 2022
@eileenmcnaughton eileenmcnaughton deleted the category branch January 17, 2022 05:30
@eileenmcnaughton
Copy link
Contributor Author

thanks @demeritcowboy - I'll regenerate...

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