Vocabulary - Relations weight bug

Created on 15 November 2019, over 5 years ago
Updated 15 April 2025, 25 days ago

When you Select "Relations" in the simplify settings for Vocabulary items, the weight and parent fields are reset if a user save a term.
So every time someone saves a term it breaks the sorting.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium falc0

Live updates comments and jobs are added and updated live.
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.

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    Hi there,

    I was not able to reproduce it.
    I tested on Drupal 9.5.11 site with the latest 8.x dev version of the module.

    For testing, I created a few terms with the tree:
    - tag 1
    -- tag 1.1
    --- tag 1.1.1
    -- tag 1.2
    - tag 2

    After that, I hid the relation field for all users and tried to resave different terms.

    It could be related to updates:

    -      $form[$field]['#access'] = FALSE;
    +     $form[$field]['#attributes']['class'][] = 'visually-hidden';
    

    thanks in advance

Production build 0.71.5 2024