Skip to content

Commit

Permalink
[REF] Fix issue where by using the i18n translation form with RichTex…
Browse files Browse the repository at this point in the history
…tEditor widgets was causing data to be escpaed in the database
  • Loading branch information
seamuslee001 committed May 1, 2023
1 parent 9833ec8 commit a380645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HTML/QuickForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ function exportValues($elementList = null)
// …or should be skipped…
or CRM_Core_HTMLInputCoder::isSkippedField($fldName)
//CRM-17962 - do not encode if element is a wysiwyg editor
or CRM_Utils_Array::value('class', $this->_elements[$key]->_attributes) == 'crm-form-wysiwyg'
or in_array('crm-form-wysiwyg', explode(' ', $this->_elements[$key]->_attributes['class'] ?? [])))
) {
// …don’t filter, otherwise filter (else clause below)
} else {
Expand Down

0 comments on commit a380645

Please sign in to comment.