Occurrence table does now have "langcode" column

Created on 11 April 2023, over 1 year ago

Problem/Motivation

Occurrence table does now have langcode column. This creates issue for multilingual website, if the recurring field is translatable. For a given entity update, Occurrence table "date_recur_*" is searched for entity id and deletes old entry before saving new. This results in deletion of all the language translations entity values.

Steps to reproduce

  1. Create multilingual website with English and Dutch languages
  2. Create Activity content type with recurrent field "Activity Dates"
  3. Create a activity node in english, with eg. recurring as Multiple days
  4. Translate this activity node in Dutch, with same recurring as Multiple days but with different dates
  5. Go to database and check the date_recur__node__field_activity_dates table. you will see activities of English translation, but Dutch activities are not present

Proposed resolution

Add langcode column to "Occurrences tables" schema and use it to delete any entries why editing or delete any content

🐛 Bug report
Status

Active

Version

3.1

Component

Field Storage

Created by

🇮🇳India amitajgaonkar

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

Comments & Activities

Production build 0.71.5 2024