Select::statesHandler() expects the $select_states variable to be initialized, but that's not guaranteed to be the case. As it turns out, the variable ends up being assigned to the $states variable before being returned anyway. I've fixed the issue by renaming the $select_states variable to $states.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

legolasbo created an issue. See original summary.

colan’s picture

Status: Needs review » Postponed (maintainer needs more info)
Baysaa’s picture

Here's a reroll against alpha4. I believe patch is still needed to prevent notices.

Baysaa’s picture

Status: Postponed (maintainer needs more info) » Needs review
Baysaa’s picture

Status: Needs review » Needs work

I'll reroll against the dev version later.

hawkeye.twolf’s picture

Here's the re-roll. Note that the previous re-roll missed a crucial change (deletion of the final variable assignment).

brad.bulger’s picture

Current code is still referencing $select_states when it shouldn't. The patch in 7 assigns to $states which is not returned. It should just use $state. Re-roll attached.

dqd’s picture

Version: 8.x-1.x-dev » 4.x-dev
Status: Needs work » Postponed (maintainer needs more info)

Thanks for the report and all the efforts/work in here! +1

Is this fix still required and if, it surely needs a re-roll? Thoughts?