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

Fix : Erreur de chargement des personnes impliquées, à revoir

parent 40055153
Loading
Loading
Loading
Loading
+4 −0
Changes for module/Oscar/src/Oscar/Controller/ProjectGrantController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -795,11 +795,15 @@ class ProjectGrantController extends AbstractOscarController

        $involvedPersons = null; $involvedPersonsJSON = null;
        if( $this->getOscarUserContext()->hasPrivileges(Privileges::ACTIVITY_PERSON_ACCESS, $activity) ){
            try {
                $involved = $this->getPersonService()->getAllPersonsWithPrivilegeInActivity(Privileges::ACTIVITY_SHOW, $activity, true);
                foreach ($involved as $p){
                    $involvedPersons[] = $p->toJson();
                }
                $involvedPersonsJSON = json_encode($involvedPersons);
            } catch ( OscarException $e ){

            }
        }

        $currencies = [];