diff --git a/lib/Alchemy/Phrasea/Controller/Prod/Edit.php b/lib/Alchemy/Phrasea/Controller/Prod/Edit.php index 12543deb33..8b031a6e8a 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/Edit.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/Edit.php @@ -29,9 +29,9 @@ class Edit implements ControllerProviderInterface { $controllers = new ControllerCollection(); - $controllers->post('/', function(Application $app) + $controllers->post('/', function(Application $app, Request $request) { - $handler = new RecordHelper\Edit($app['Core'], $app['request']); + $handler = new RecordHelper\Edit($app['Core'], $request); $handler->propose_editing(); @@ -44,9 +44,8 @@ class Edit implements ControllerProviderInterface } ); - $controllers->post('/apply/', function(Application $app) + $controllers->post('/apply/', function(Application $app, Request $request) { - $request = $app['request']; $editing = new RecordHelper\Edit($app['Core'], $app['request']); $editing->execute($request);