Posted by BWPanda on July 21, 2012 at 5:53am
3 followers
| Project: | Image Matrix |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
The 'custom link class' and 'custom link rel attribute' fields are always visible, even though they have Form API #states that dictate when they should be hidden...
Comments
#1
According to the documentation for drupal_process_states(), "all conditions must be met for the state to be applied."
Since the
':input[name="options[settings][image_link]"]' => array('value' => '')condition didn't seem to be doing anything, I removed it and now the 'custom link class' field is correctly hidden when 'Link image to' is set to 'None'. Same for 'custom link rel attribute'.Attached patch working for me.
#2
No good - your patch fixes it for content type field configuration, but it still doesn't work on view field configuration (that's what the other condition is for). Fixed in the most recent dev release, just pushed to d.o.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.