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 you have an optional attribute sorted above dependent attributes, the dependent attributes will not have their options lists filtered properly. This appears to be because we're using isset() on the parent attribute's #default_value, which will be NULL when the empty value is selected. Patch incoming using array_key_exists() instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2919323-2.optional_attribute_fix.patch | 702 bytes | rszrama |
|
Comments
Comment #2
rszrama CreditAttribution: rszrama at Centarro commentedPatch attached, not that I'd guess we have any tests covering this extreme edge case. : P
Comment #4
rszrama CreditAttribution: rszrama at Centarro commentedCommitted.