[DEFECT] showFields Field Variable for relationship fields incorrectly displays image when no tags are present
Nobody has claimed this yet.
- 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.
Steps to Reproduce
- Go to a Content Type that has a
relationshipfield and atagsfield - Add the
showFieldsField variable and set the value to "image, title, tags" or "title, tags" - Create or edit a content entry of that content type
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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