Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Going back from a entityform preview using the Change button breaks ajax all callbacks in the form.
How to reproduce:
- Create an entity form with a Unlimited-cardinality field of any type.
- Activate preview for this form.
- Fill out the form.
- Submit the form.
- Click "Change" on the preview page.
- Try to add/remove items from the field with unlimited cardinality.
Ajax callbacks only work every second time.
Comment | File | Size | Author |
---|---|---|---|
#1 | change_breaks_ajax-delete_preview_on_change-2283685-1-D7.patch | 598 bytes | pmelab |
Comments
Comment #1
pmelab CreditAttribution: pmelab commentedClearing $form_state['entityform_preview_entity'] on Change is my first approach to fix the problem.
Comment #2
p0pemar1naru CreditAttribution: p0pemar1naru commentedpatch works like a charm... Suggest to close the issue.
Comment #5
tedbow@pmelab thanks for the patch. committed!