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 unused assignment #21061

Merged
merged 1 commit into from
Aug 8, 2021
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Remove unused assignment

Before

A template assignment 'htmlContent' is done in the wrong place (formRule function) - a bit of a search shows that this is not used in any of the email or pdf classes that access the function

After

poof

Technical Details

I thought I'd finish decommissioning this old class & start to fix the pdf classes to use a trait like the email classes do - but when I looked at this function it seemed odd & on further digging I couldn't find a reason for the oddness - maybe @demeritcowboy can?

Comments

@civibot
Copy link

civibot bot commented Aug 8, 2021

(Standard links)

@civibot civibot bot added the master label Aug 8, 2021
@demeritcowboy
Copy link
Contributor

I do remember something about saveTemplate and saveTemplateName coming up before, if that's what you mean. Will see if I can find.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy my thinking is to move the save template rule to the main task form - since it's used by different tasks like email & pdf tasks - but I think this part is not needed

@demeritcowboy
Copy link
Contributor

Ok yes on the htmlContent part it seems not needed. It looks like it was put into formRule as a way of dealing with the ckeditor contents disappearing when validation failed and the page reloaded, rightly or wrongly:
civicrm/civicrm-svn@90726cd

That's obviously handled differently now and testing it the ckeditor contents show up on page reload after validation fail.

@demeritcowboy demeritcowboy merged commit 80bc869 into civicrm:master Aug 8, 2021
@eileenmcnaughton eileenmcnaughton deleted the trait branch August 8, 2021 23:08
@eileenmcnaughton
Copy link
Contributor Author

thanks @demeritcowboy !

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