Skip to content

Commit

Permalink
Add choices per instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jerolomb committed Dec 22, 2017
1 parent 592baf1 commit 90c40c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/MonarcFO/Controller/ApiAnrInstancesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public function get($id)
/** @var InstanceService $service */
$service = $this->getService();
$entity = $service->getEntityByIdAndAnr($id, $anrId);

if ($this->params()->fromQuery('csv', false)) {
header('Content-Type: text/csv');
die($this->getService()->getCsvRisksOp($anrId, $entity, $params));}
if (count($this->dependencies)) {
$this->formatDependencies($entity, $this->dependencies);
}
Expand Down Expand Up @@ -116,4 +118,4 @@ public function create($data)
'id' => $id,
]);
}
}
}
2 changes: 1 addition & 1 deletion src/MonarcFO/Controller/ApiAnrRisksOpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ public function patch($id, $data)
{
$this->methodNotAllowed();
}
}
}

0 comments on commit 90c40c0

Please sign in to comment.