Skip to content
Snippets Groups Projects
Commit ebbc9194 authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FEAT #18096 TIME 0:05 using utf8_decode() on csv values

parent 451a784c
No related branches found
No related tags found
No related merge requests found
...@@ -808,9 +808,9 @@ class EntityController ...@@ -808,9 +808,9 @@ class EntityController
$entityValues = []; $entityValues = [];
foreach ($fields as $field) { foreach ($fields as $field) {
if (in_array($field['value'], ['diffusionList', 'visaCircuit', 'opinionCircuit'])) { // camelCase in the DB already if (in_array($field['value'], ['diffusionList', 'visaCircuit', 'opinionCircuit'])) { // camelCase in the DB already
$entityValues[] = $entity[$field['value']]; $entityValues[] = utf8_decode($entity[$field['value']]);
} else { } else {
$entityValues[] = $entity[TextFormatModel::camelToSnake($field['value'])]; $entityValues[] = utf8_decode($entity[TextFormatModel::camelToSnake($field['value'])]);
} }
} }
fputcsv($file, $entityValues, $delimiter); fputcsv($file, $entityValues, $delimiter);
......
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