Skip to content
Snippets Groups Projects
Commit 79a20bf1 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Les numérotations personnalisés s'affichent correctement dans la fiche activité

parent 6c3e2a2e
No related branches found
No related tags found
No related merge requests found
Pipeline #37743 passed
......@@ -521,6 +521,14 @@ class ProjectGrantApiService implements UseEntityManager,
'url_show' => $urlPlugin->fromRoute('project/show', ['id' => $activity->getProject()->getId()])
];
}
// Numérotation
$numeros = [];
foreach ($activity->getNumbers() as $key => $value) {
$numeros[$key] = $value;
}
return [
'id' => $activity->getId(),
'label' => $activity->getLabel(),
......@@ -531,6 +539,7 @@ class ProjectGrantApiService implements UseEntityManager,
'acronym' => $activity->getAcronym(),
'project' => $project,
'disciplines' => $activity->getDisciplinesArray(),
'numeros' => $numeros,
'motscles' => $activity->getMotsclesArray(),
'type' => $activity->getActivityType() ? (string)$activity->getActivityType() : null,
'type_chain' => $typesJson,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment