dotCMS / dotCMS/core

[DEFECT] showFields Field Variable for relationship fields incorrectly displays image when no tags are present

Open
#33,812 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support Team : Maintenance
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

When using the showFields Field Variable for relationship fields in a content type, the output unexpectedly includes an image when the related content entry has no tags. This appears to be a fallback or rendering issue, the field is showing an image instead of leaving the area blank or showing no data.

This leads to misleading visual output and inconsistent rendering when relationship entries are missing tags.

Image
Steps to Reproduce
  1. Go to a Content Type that has a relationship field and a tags field
  2. Add the showFields Field variable and set the value to "image, title, tags" or "title, tags"
  3. Create or edit a content entry of that content type
  4. In the relationship field, there should be entries that have no tags
Acceptance Criteria
  • When no tags are defined, the relationship field should not display any image or placeholder, it should just be empty
dotCMS Version

25.11.07-1

Severity

Low - Minor issue or cosmetic

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a relationship field whose related entry has no tags, using showFields set to "image, title, tags" or "title, tags". Trace the rendering entry point for relationship fields and the tags fallback, then verify that an entry without tags produces no image or placeholder.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.