Merge branch 'dev/organization/bugfix-1' into 'develop'
solve org error See merge request easy-solutions/apps/easyportal!17
This commit is contained in:
commit
0549494786
|
|
@ -74,6 +74,7 @@ class OrganizationController extends AbstractController
|
||||||
throw new AccessDeniedHttpException('Access denied');
|
throw new AccessDeniedHttpException('Access denied');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[Route(path: '/create', name: 'create', methods: ['GET', 'POST'])]
|
#[Route(path: '/create', name: 'create', methods: ['GET', 'POST'])]
|
||||||
public function new(Request $request): Response
|
public function new(Request $request): Response
|
||||||
{
|
{
|
||||||
|
|
@ -345,7 +346,6 @@ class OrganizationController extends AbstractController
|
||||||
|
|
||||||
// Map to array
|
// Map to array
|
||||||
$data = array_map(function (Organizations $org) {
|
$data = array_map(function (Organizations $org) {
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'id' => $org->getId(),
|
'id' => $org->getId(),
|
||||||
'name' => $org->getName(),
|
'name' => $org->getName(),
|
||||||
|
|
@ -366,4 +366,5 @@ class OrganizationController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue