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

CRM-9362: PCP 'Your Message' should use WYSIWYG #18411

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

MegaphoneJon
Copy link
Contributor

Overview

The page where you edit your PCP settings has a textarea field where a wysiwyg field should be.

Before

Selection_911

After

Selection_910

Technical Details

It's literally a one-word change.

Comments

I don't know when this regressed - but it must have been in SVN times.

@civibot
Copy link

civibot bot commented Sep 8, 2020

(Standard links)

@civibot civibot bot added the master label Sep 8, 2020
@eileenmcnaughton
Copy link
Contributor

@MegaphoneJon was the with-html version in your db? We've hit problems with things like this before because it changes it from being saved as text to saved as html & other code not expecting html

@seamuslee001
Copy link
Contributor

The original is also at least consistent with what is in the schema xml https://github.com/civicrm/civicrm-core/blob/master/xml/schema/PCP/PCP.xml#L80 if we wanted to change it (not the worst thing in the world) then the schema xml and also this line

would need to be updated

@MegaphoneJon
Copy link
Contributor Author

The screenshots are from a civibuild, so presumably it's what's in the sample data.

@eileenmcnaughton
Copy link
Contributor

@KarinG you use pcps...

@KarinG
Copy link
Contributor

KarinG commented Sep 9, 2020

That looks 👍 👍

@eileenmcnaughton
Copy link
Contributor

Ok - well once @seamuslee001's comments are addressed I think we should merge it then. This isn't broadly used so agreement from @KarinG & @MegaphoneJon is OK from a concept-approved POV

@yashodha
Copy link
Contributor

@MegaphoneJon
Copy link
Contributor Author

@yashodha That's the field I'm changing. Am I misunderstanding the question?

@eileenmcnaughton
Copy link
Contributor

I'm still nervous about existing saved text in this field - maybe on upgrade we check for presence of html tags & if none run through nl2br

@yashodha
Copy link
Contributor

@colemanw
Copy link
Member

colemanw commented Oct 7, 2020

@MegaphoneJon can you make that change to the schema xml?

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Oct 14, 2020

Discussed with @seamuslee001 & @kcristiano - merging this & @seamuslee001 will do a follow up with xml fix & a check if purify is needed in the tpl

@eileenmcnaughton eileenmcnaughton merged commit 96879c1 into civicrm:master Oct 14, 2020
@MegaphoneJon MegaphoneJon deleted the pcp-wysiwyg branch October 15, 2020 03:19
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.

6 participants