Skip to content

Commit

Permalink
Add html decoding on mappers
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusyerli1 committed Aug 30, 2024
1 parent 3a431f0 commit ff1ed1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ public function fetch(
$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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function toApi(SugarBean $bean, array &$container, string $name, string $
}

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

$container[$newName] = $relate;
}
Expand Down

0 comments on commit ff1ed1d

Please sign in to comment.