Skip to content

Commit

Permalink
added formTypeId argument to selectEditor method.
Browse files Browse the repository at this point in the history
  • Loading branch information
zeno-ce committed Oct 24, 2014
1 parent 45f7812 commit ba0825f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Controller/ElFinderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function showAction($instance)
{
$efParameters = $this->container->getParameter('fm_elfinder');
$parameters = $efParameters['instances'][$instance];
$result = $this->selectEditor($parameters, $instance);
$result = $this->selectEditor($parameters, $instance, $this->request->get("id"));

return $this->render($result['template'], $result['params']);
}
Expand All @@ -33,7 +33,7 @@ public function showAction($instance)
* @param $instance
* @return array
*/
private function selectEditor($parameters, $instance)
private function selectEditor($parameters, $instance, $formTypeId = null)
{
$editor = $parameters['editor'];
$locale = $parameters['locale'] ?: $this->container->getParameter('locale');
Expand Down Expand Up @@ -77,7 +77,7 @@ private function selectEditor($parameters, $instance)
'fullscreen' => $fullscreen,
'includeAssets' => $includeAssets,
'instance' => $instance,
'id'=>$this->getRequest()->get("id")
'id'=>$formTypeId
);
return $result;
default:
Expand Down

0 comments on commit ba0825f

Please sign in to comment.