salesagility / SuiteCRM-Core

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
183 stars 136 forks source link

Property History CSS being sanitized #319

Open yunusyerli1 opened 1 year ago

yunusyerli1 commented 1 year ago

Issue

When creating a Case and pulling in the Property History, the formatting of the Property History looks correct initially (e.g. the CSS is working and it displays properly). However, when you save the Case, the CSS is stripped out. Need to find a way to disable this so the CSS remains after saving the record.

Expected Behavior

Whenecer you save a Case and change tabs in detail view, CSS of the related fileds should take effect.

Actual Behavior

Whenecer you save a Case and change tabs in detail view, CSS of the related fileds does not take effect.

Possible Fix

Add purifyHtml variable in SugarBean.php and get the value from $def['metadata']['purifyHtml'].

Steps to Reproduce

  1. Create a case.
  2. Select a Service.
  3. Fill UPRN and save.
  4. Change tabs.

Context

After filling UPRN, newly created fields are being styled. But after save button, these style disappears.

Your Environment

johnM2401 commented 1 year ago

Hey Yunus!

It looks like the Steps to Replicate here are for a specific customized environment.

If possible, when you get a chance, could you add Steps to Replicate for a generic Vanilla suitecrm environment?

Thanks!