Skip to content

Commit ff1ed1d

Browse files
committed
Add html decoding on mappers
1 parent 3a431f0 commit ff1ed1d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

core/backend/Data/LegacyHandler/PresetDataHandlers/HistoryTimelineDataHandler.php

+4
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ public function fetch(
322322
$listData[$key]['assigned_user_name']['user_name'] = $user->user_name ?? '';
323323
$listData[$key]['assigned_user_name']['user_id'] = $record['assigned_user_id'];
324324
$listData[$key]['module_name'] = $panelToModuleName[$listData[$key]['panel_name']];
325+
$listData[$key]['description'] = html_entity_decode($listData[$key]['description'] ?? '', ENT_QUOTES);
326+
$listData[$key]['name'] = html_entity_decode($listData[$key]['name'] ?? '', ENT_QUOTES);
327+
$listData[$key]['status'] = html_entity_decode($listData[$key]['status'] ?? '', ENT_QUOTES);
328+
325329
}
326330

327331
$timelineEntryData = new ListData();

public/legacy/include/portability/ApiBeanMapper/TypeMappers/ParentMapper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function toApi(SugarBean $bean, array &$container, string $name, string $
8383
}
8484

8585
$relate['id'] = $parentId;
86-
$relate[$rName] = $bean->$name ?? '';
86+
$relate[$rName] = html_entity_decode($bean->$name ?? '', ENT_QUOTES);
8787

8888
$container[$newName] = $relate;
8989
}

0 commit comments

Comments
 (0)