Skip to content

Commit

Permalink
Merge branch 'dev-ruben' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde authored Feb 7, 2020
2 parents 5411281 + 2c2423d commit 79cdaef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion api/src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,14 @@ public function viewAction(Session $session, $slug = false, $resource = false, S
return $this->redirect($this->generateUrl('app_default_slug', ['requestType' => 'http://vtc.zaakonline.nl/request_types/5b10c1d6-7121-4be2-b479-7523f1b625f1']));
break;
case 'new-request':
$variables['requestTypes'] = $commonGroundService->getResourceList('https://vtc.zaakonline.nl/request_types', ['submitter' => $variables['user']['burgerservicenummer']])["hydra:member"];
$variables['requestTypes'] = $commonGroundService->getResourceList('https://vtc.zaakonline.nl/request_types')["hydra:member"];
break;
case 'switch-organisation':
$variables['organisations'] = $commonGroundService->getResourceList('http://wrc.zaakonline.nl/organizations')["hydra:member"];
break;
case 'switch-application':
$variables['applications'] = $commonGroundService->getResourceList('http://wrc.zaakonline.nl/applications')["hydra:member"];
break;
}

if ($template = $sjabloonService->getOnSlug($slug)) {
Expand Down
14 changes: 10 additions & 4 deletions api/src/Service/ApplicationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,28 @@ public function getVariables()
// @todo iets met organisaties en applicaties
$organization= $this->request->get('organization');
if($organization|| $organization= $this->request->query->get('organization')){
$organization= $this->commonGroundService->getResource($organization);
$this->session->set('organization', $organization);
}
else{
// lets default
elseif(!$this->session->get('organization') ){
/*@todo param bag interface */
$this->session->set('organization', '000000');
$organization= $this->commonGroundService->getResource('http://wrc.zaakonline.nl/organizations/8366b635-2c76-4007-a782-048f8797e766');
$this->session->set('organization', $organization);
}
$variables['organization'] = $this->session->get('organization');

// application
$application= $this->request->get('application');
if($application|| $application= $this->request->query->get('application')){
$application= $this->commonGroundService->getResource($application);
$this->session->set('application', $application);
}
else{
// lets default
elseif(!$this->session->get('application')){
/*@todo param bag interface */
$this->session->set('application', '0000000');
$application= $this->commonGroundService->getResource('http://wrc.zaakonline.nl/applications/536bfb73-63a5-4719-b535-d835607b88b2');
$this->session->set('application', $application);
}
$variables['application'] = $this->session->get('application');

Expand Down

0 comments on commit 79cdaef

Please sign in to comment.