Commit 28d1de3d authored by Stéphane Bouvry's avatar Stéphane Bouvry
Browse files

Connector > Activités > JSON : Le champ contenant l'intitulé du projet peut...

Connector > Activités > JSON : Le champ contenant l'intitulé du projet peut être project ou projectlabel
parent a688f3b4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -352,7 +352,10 @@ class ConnectorActivityJSON implements ConnectorInterface
            // -----------------------------------------------------------------
            // Projet de l'activité
            $projectAcronym = $data->acronym;
            $projectLabel = $data->projectlabel;

            if( $data->project || $data->projectlabel )
                $projectLabel = $data->project ?: $data->projectlabel;


            $project = $this->getProjectOrCreate( $projectAcronym, $projectLabel, $repport);