Status message confirming field deletion incorrectly references 'content type'

Created on 7 June 2023, over 1 year ago
Updated 25 October 2023, about 1 year ago

Problem/Motivation

Steps to reproduce

Add a 'Test' field to the user profile at /admin/config/people/accounts/fields
Delete the 'Test' field
Actual status message: The field Test has been deleted from the User content type.
Expected status message: The field Test has been deleted from the User profile.

Add a 'Test' field to the Basic block block type at /admin/structure/block/block-content/manage/basic/fields
Delete the 'Test' field
Actual status message: The field Test has been deleted from the Basic block content type.
Expected status message: The field Test has been deleted from the Basic block block type.

Add a 'Test' field to the Default comments comment type at /admin/structure/comment/manage/comment/fields
Delete the 'Test' field
Actual Status message: The field Test has been deleted from the Default comments content type.
Expected status message: The field Test has been deleted from the Default comments comment type.

Add a 'Test' field to the Article content type at /admin/structure/types/manage/article/fields
Delete the 'Test' field
Actual Status message: The field Test has been deleted from the Article content type.
This makes sense, because the field in this instance is being delete from a 'content type'

Add a 'Test' field to the 'Audio' media type at /admin/structure/media/manage/audio/fields
Delete the 'Test' field
Actual status message: The field Test has been deleted from the Audio content type.
Expected status message: The field Test has been deleted from the Audio media type.

Add a 'Test' field to the 'Tags' vocabulary at /admin/structure/taxonomy/manage/tags/overview/fields
Delete the 'Test' field
Actual status message: The field Test has been deleted from the Tags content type.
Expected status message: The field Test has been deleted from the Tags vocabulary.

Proposed resolution

  • When deleting a field from the User profile, the status message should say the field was deleted from the 'profile', not 'content type'
  • When deleting a field from a Custom block type, the status message should say the field was deleted from the 'block type', not 'content type'
  • When deleting a field from a Comment type, the status message should say the field was deleted from the comment type, not 'content type'
  • When deleting a field from a Media type, the status message should say the field was deleted from the media type, not 'content type'
  • When deleting a field from a Vocabulary, the status message should say the field was deleted from the vocabulary, not 'content type'

Remaining tasks

Discuss
Agree
Patch
Review

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.2

Component
Entity 

Last updated 1 day ago

Created by

🇺🇸United States Chris Matthews

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024