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
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

markus_petrux - August 13, 2009 - 19:17
Status:active» fixed

http://drupal.org/cvs?commit=250764

#2

markus_petrux - August 13, 2009 - 19:23
Version:6.x-1.0-beta3» 6.x-1.x-dev

Wrong version, sorry. Fixed.

#3

markus_petrux - August 13, 2009 - 19:24
Version:6.x-1.x-dev» 6.x-1.0

Ugh!

#4

System Message - August 27, 2009 - 19:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.