Commit bb17d7be authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix (Postgresql < 18), les requêtes groupées necessitent un alias

parent 7cd61510
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -800,7 +800,7 @@ class OscarUserContext implements UseOscarConfigurationService, UseLoggerService
                        ON a.id = p.activity_id
                    JOIN projectpartner pp
                        ON pp.project_id = a.project_id
                ) 
                ) as payment
            WHERE organization_id IN (:organizations_ids)
            GROUP BY organization_id;";

@@ -825,7 +825,8 @@ class OscarUserContext implements UseOscarConfigurationService, UseLoggerService
            }

        } catch (\Exception $e) {
            $this->getLogger()->error($e->getMessage());
		throw $e;
            $this->getLoggerService()->error($e->getMessage());
        }
        return $structures;
    }