Skip to content
Snippets Groups Projects
Unverified Commit 01f7e22a authored by totten's avatar totten Committed by GitHub
Browse files

Merge pull request #20606 from totten/master-html-types

translation#67 - Allow translation of fields which lack an explicit HTML type
parents 5eaa1207 9ac45bdf
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ class CRM_Core_BAO_Translation extends CRM_Core_DAO_Translation implements \Civi
public static function self_civi_api4_validate(\Civi\Api4\Event\ValidateValuesEvent $e) {
$statuses = self::getStatuses('validate');
$dataTypes = [CRM_Utils_Type::T_STRING, CRM_Utils_Type::T_TEXT, CRM_Utils_Type::T_LONGTEXT];
$htmlTypes = ['Text', 'TextArea', 'RichTextEditor'];
$htmlTypes = ['Text', 'TextArea', 'RichTextEditor', ''];
foreach ($e->records as $r => $record) {
if (array_key_exists('status_id', $record) && !isset($statuses[$record['status_id']])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment