Error on data-region attribute assignation

Created on 16 May 2023, over 1 year ago

Problem/Motivation

In some cases the settings.context_groups_regions order is different of the regions table, and the javascript method Drupal.behaviors.addClassToRegions assings wrond values to the attribute data-region, when this happened block changes its real region value using the incorrect value in the attribute data-region during the reorder action.

Steps to reproduce

  1. Install bootstrap_barrio
  2. Add two context group to the content region
  3. Reorder them with the drag and drop (See the region select value change to Featured top value

Proposed resolution

Create a foreach similar of the used on context_groups_add_regions_to_table to generate an array to set on settings.context_groups_regions with the correct order of regions.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇷Costa Rica maxmendez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024