Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

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 11 months, 3 weeks ago.

  • 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)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com