ssossossossosso

Forums

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

Forums Forums OroCRM OroCRM – How do I? Questions Save , Save & New , Save & Close Buttons Not working

This topic contains 1 reply, has 2 voices, and was last updated by  Yurii Muratov 2 months, 1 week ago.

  • Creator
    Topic
  • #26604

    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 2 months, 2 weeks ago by  sachingk.30.
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #26606

    Yurii Muratov
    Participant

    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.