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.
After some further testing when adding new fields to entities and views, we found there are issues with the #ajax
code we're using to dynamically change the "Manage selected preset" link.
The attached patch does the following:
- Sets the default preset to the first preset in the list if none have been selected.
- Only adds the
#ajax
callback when not in Views, and not adding a new field to a node. In both of these situations it fails, and cannot even save the form. I'm assuming it has something to do with ctools and field_ui ajax being nested inside of ajax. - Clean up the ajax callback function to match our findings.
Comment | File | Size | Author |
---|---|---|---|
jw_player-ajax_preset_links-1.patch | 7.86 KB | ron_s | |
Comments