Buttons enabled for node reference extras disappear when validation errors occur in the form
markus_petrux - August 13, 2009 - 19:15
| Project: | Node Relationships |
| Version: | 6.x-1.0 |
| Component: | Node relationships extensions |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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...

#1
http://drupal.org/cvs?commit=250764
#2
Wrong version, sorry. Fixed.
#3
Ugh!
#4
Automatically closed -- issue fixed for 2 weeks with no activity.