Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/5.0' into 5.0-to-5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz committed Feb 26, 2024
2 parents cb5b3c7 + 70bf2c4 commit caee666
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
11 changes: 11 additions & 0 deletions app/bundles/FormBundle/Controller/Api/FormApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,15 @@ protected function createFieldEntityForm($entity)
]
);
}

public function newEntityAction(Request $request): Response
{
$parameters = $request->request->all();

if (!isset($parameters['postAction'])) {
$request->request->add(['postAction' => 'return']);
}

return parent::newEntityAction($request);
}
}
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit caee666

Please sign in to comment.