OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

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 6 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #29406

    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #29407

    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)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top