ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 1 reply, has 2 voices, and was last updated by  Yurii Muratov 2 weeks, 3 days ago.

  • Creator
    Topic
  • #39317

    sachingk.30
    Participant

    I have created a custom module called promotions. In update.html.twig I have created a button such as Save, Save & New, Save & Close . On click of those buttons the entity get saved however Save & Close , Save & New do not redirect to the respective routes.

    Below is the code. Please suggest if I have missed something

    In update.html.twig

    In Promotion Controller

    • This topic was modified 3 weeks, 3 days ago by  sachingk.30.
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #39418

    Yurii Muratov
    Oro Core

    Hi, sachingk.30.

    The issue is in your controller’s action.

    As a handler you use oro_form.model.update_handler service with update method.

    You ignore the result of this method. But the result of this method can be an array in case of error (validation, etc.) or RedirectResponse. Sou you should return the output of this method.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.