[Legacy] Fix #319 - Prevent css sanitization#320
[Legacy] Fix #319 - Prevent css sanitization#320yunusyerli1 wants to merge 2 commits intoSuiteCRM:hotfixfrom
Conversation
|
Hey @yunusyerli1 I've tried to test this PR, but I think I need further information as I'm not sure I understand the intent/fix. I've applied your PR and added the suggested to vardefs, ie: However, I cannot see any changes to either a WYSIWYG or HTML field that i've added to the Accounts module. The "How to Test" on this PR, (as well as the Bug related to this PR), appear to be referring to already exisiting custom functionality. Would you be able to provide some steps to test this PR that would be applicable to a generic CRM environment? Thanks! |
|
Hey @yunusyerli1 I've had a further look into this and it appears as though the trustHTML functionality may be missing from this branch Could you have another look at this, when you get a chance? Thanks! |
aa47ba3 to
41c878e
Compare


Description
Add purifyHtml variable in SugarBean.php and get the value from $def['metadata']['purifyHtml']. #319
Motivation and Context
Whenever you save a Case and change tabs in detail view, CSS of the related fileds was disappearing.
How To Test This
If you add new fields like Property History and if these fields are getting CSS styles:
'metadata' => [
'trustHTML' => true,
'purifyHtml' => false
],
Types of changes
Final checklist