Skip to content

Commit a256712

Browse files
authored
Revert "Fix CRUDController::editAction ignoring its optional parameter" (#3969)
1 parent 15b350f commit a256712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/CRUDController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function deleteAction($id)
221221
/**
222222
* Edit action.
223223
*
224-
* @param int|string|null $id Optional ID to use instead of globally provided default.
224+
* @param int|string|null $id
225225
*
226226
* @return Response|RedirectResponse
227227
*
@@ -234,7 +234,7 @@ public function editAction($id = null)
234234
// the key used to lookup the template
235235
$templateKey = 'edit';
236236

237-
$id = $id ?: $request->get($this->admin->getIdParameter());
237+
$id = $request->get($this->admin->getIdParameter());
238238
$object = $this->admin->getObject($id);
239239

240240
if (!$object) {

0 commit comments

Comments
 (0)