Skip to content

Exception on "Add new" form #5

@jean-gui

Description

@jean-gui

Hi,

I'm trying to use this extension in one of my projects and although it seems to mostly work, when I try to create a new entry from Sonata admin I get the following exception:

An exception has been thrown during the rendering of a template ("Parameter "id" for route "admin_translations_workflow_apply_transition" must match "[^/]++" ("" given) to generate a corresponding URL.").

The route is defined as:

  admin_translations_workflow_apply_transition   ANY        ANY      ANY          /Web/Tools/PressArticles/w3c/accounts/translation/{id}/workflow/transition/{transition}/apply  

I believe the error is due to the fact that the new entry doesn't have an id yet, thus preventing that route from being generated.

Is there something special to do to handle sonata creation forms?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions