Going back from a entityform preview using the Change button breaks ajax all callbacks in the form.

How to reproduce:

  1. Create an entity form with a Unlimited-cardinality field of any type.
  2. Activate preview for this form.
  3. Fill out the form.
  4. Submit the form.
  5. Click "Change" on the preview page.
  6. Try to add/remove items from the field with unlimited cardinality.

Ajax callbacks only work every second time.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pmelab’s picture

Status: Active » Needs review
FileSize
598 bytes

Clearing $form_state['entityform_preview_entity'] on Change is my first approach to fix the problem.

p0pemar1naru’s picture

patch works like a charm... Suggest to close the issue.

  • tedbow committed 0209abc on 7.x-2.x authored by pmelab
    Issue #2283685 by pmelab: Fixed Change after review breaks ajax forms.
    
tedbow’s picture

Status: Needs review » Fixed

@pmelab thanks for the patch. committed!

  • tedbow committed 0209abc on 7.x-2-metatags-2344293 authored by pmelab
    Issue #2283685 by pmelab: Fixed Change after review breaks ajax forms.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.