mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
Add html decoding on mappers
This commit is contained in:
parent
3a431f08ca
commit
ff1ed1de23
2 changed files with 5 additions and 1 deletions
|
@ -322,6 +322,10 @@ class HistoryTimelineDataHandler extends SubpanelDataQueryHandler implements Pre
|
|||
$listData[$key]['assigned_user_name']['user_name'] = $user->user_name ?? '';
|
||||
$listData[$key]['assigned_user_name']['user_id'] = $record['assigned_user_id'];
|
||||
$listData[$key]['module_name'] = $panelToModuleName[$listData[$key]['panel_name']];
|
||||
$listData[$key]['description'] = html_entity_decode($listData[$key]['description'] ?? '', ENT_QUOTES);
|
||||
$listData[$key]['name'] = html_entity_decode($listData[$key]['name'] ?? '', ENT_QUOTES);
|
||||
$listData[$key]['status'] = html_entity_decode($listData[$key]['status'] ?? '', ENT_QUOTES);
|
||||
|
||||
}
|
||||
|
||||
$timelineEntryData = new ListData();
|
||||
|
|
|
@ -83,7 +83,7 @@ class ParentMapper implements TypeMapperInterface
|
|||
}
|
||||
|
||||
$relate['id'] = $parentId;
|
||||
$relate[$rName] = $bean->$name ?? '';
|
||||
$relate[$rName] = html_entity_decode($bean->$name ?? '', ENT_QUOTES);
|
||||
|
||||
$container[$newName] = $relate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue