Ensure that entity_id is integer in taxonomy_entity_index_entity_delete() function

Created on 5 December 2023, over 1 year ago

Problem/Motivation

In Drupal 8 onwards, entity ids can be string as well. We already have one issue https://www.drupal.org/project/taxonomy_entity_index/issues/3109722 🐛 Entity IDs can be strings in Drupal 8 Needs work to address that.

However, till that issue lands into the module, we should ensure that entity id is integer before we address further delete.

Steps to reproduce

- Create a new custom entity with entity id as string.
- Enable the relationship and try to delete the entity

Proposed resolution

- Ensure that entity id is integer before doing further deletions

Remaining tasks

- Needs review

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India mohit_aghera Rajkot

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024