Open danfoley opened 1 week ago
I got the same issue with my code.
I tried to dump/echo data and I found the error may come from vendor/easycorp/easyadmin-bundle/src/Factory/ActionFactory.php:204
:
// here $actionDto->getName() equals Action::SAVE_AND_RETURN
if (\in_array($actionDto->getName(), [Action::INDEX, Action::NEW, Action::SAVE_AND_ADD_ANOTHER], true)) {
$requestParameters[EA::ENTITY_ID] = null;
} elseif (null !== $entityDto) {
$requestParameters[EA::ENTITY_ID] = $entityDto->getPrimaryKeyValueAsString();
}
I think the action SAVE_AND_RETURN
has been missing in the if part. But I don't have the big picture and cannot know if there are others side effects.
Is anyone can confirm my hypothesis?
Create a new item in easy admin results in this bug:
To Reproduce easycorp/easyadmin-bundle upgrading from
(v4.13.6 => v4.14.0) for SF v7.1.4