Occurrences are not differentiated by langauge

Created on 11 April 2023, over 1 year ago
Updated 17 August 2023, about 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

Feature request
Status

Needs work

Version

3.2

Component

Miscellaneous

Created by

🇮🇳India amitajgaonkar

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

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024