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.
Amazing module by the way!
Right now it does not work with field collections. It needs this exception handling in code as you did with the node and the user form. Or is there another way?
Comments
Comment #1
ArtusamakThanks for the message. ;)
With is the view / callback that you are building / calling to say that it's not working with field collections?
Comment #2
ArtusamakPlease reopen if you have more information on how to reproduce the issue.
Comment #3
dinesh217 CreditAttribution: dinesh217 commentedHi,
Any alternative solution for views megarow to work with field collection view??
Comment #4
noahott CreditAttribution: noahott commentedI'm struggling with this as well.
I have megarow links set to edit a field collection directly using this path:
field-collection/field-my-field/[item_id]/edit
Displaying the form in the megarow works fine, but submitting the form returns HTML resulting in an AJAX error. Some processing of the form by megarow appears to be happening since the form action is modified to
/display_megarow/[id]/field-collection/field-my-field/[item_id]/edit
I've also tried to add the #submit handler
views_megarow_autoclose_megarow
to the form, but it makes no difference.Comment #5
noahott CreditAttribution: noahott commentedI figured this one out. I needed to override the field_collection form submit callback since the one from the module included a redirect. (field_collection.pages.inc:66)
This is what I added to a custom module to fix the AJAX error:
Adding the views_megarow_autoclose_megarow submit callback as an additional callback to field_collection form submit does not work so I had to call views_megarow_command_dismiss() directly.