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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama created an issue. See original summary.

rszrama’s picture

Status: Active » Needs review
FileSize
702 bytes

Patch attached, not that I'd guess we have any tests covering this extreme edge case. : P

  • rszrama committed 749c03a on 7.x-1.x
    Issue #2919323 by rszrama: Fix dependent attribute option filtering when...
rszrama’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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