Download & Extend

Custom link class always visible

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

Status:active» needs review

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.

AttachmentSize
custom_link_class_always_visible-1695528-1.patch 1015 bytes

#2

Status:needs review» fixed

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

Status:fixed» closed (fixed)

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

nobody click here