Taxonomy term submit assumes that the value is being provided by a multi value field

Created on 17 August 2011, over 13 years ago
Updated 15 September 2023, over 1 year ago

Taxonomy terms submit handler checks for

if ($current_parent_count == 1 && isset($form_state['values']['parent'][0])) {

If the parent field has been to set to multiple = FALSE via a form alter this causes side effects as the isset fails.

Patch attached to corrrect this behaviour.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
TaxonomyΒ  β†’

Last updated 30 minutes ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @xjm
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

πŸ‡¨πŸ‡¦Canada marcingy

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024