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.
When the form is submitted and there are validation errors, the buttons enabled for node reference extras (search/create and reference, etc.) disappear.
This happens because on validation errors the form is not rebuilt again, hook_form_alter() is not invoked, our after build callback either, which is where we were sending the javascript to the page.
This can be solved using a pre_render callback instead of an after_build callback.
Patch coming...
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedhttp://drupal.org/cvs?commit=250764
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedWrong version, sorry. Fixed.
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedUgh!