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
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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,