craftcms / craftcms/cms

[5.x]: element index: money field currency abbr rendered twice

Open
#18,146 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

screenshot with currency abbr rendered twice:
https://share.cleanshot.com/834vYBnD

Steps to reproduce
  1. select money field to render in element source
Expected behavior

currency abbr rendered 1 (or 0 times)

Actual behavior

currency abbr rendered twice

Craft CMS version

5.8.21

PHP version

8.3.14

Operating system and version

Linux 5.15.0-126-generic

Database type and version

MariaDB 10.11.10

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

CKEditor
4.11.0
Dashboard Begone
3.0.0
Datastar
1.0.0-beta.9
Elements Panel
3.0.1
Empty Coalesce
5.0.0
Guest Entries
4.0.1
Knock Knock
3.0.5
Minify
5.0.0
Obfuscator
1.2.0
Typogrify
5.0.1
Vite
5.0.1

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 money field rendered in the element source on Craft CMS 5.8.21, then trace the element index rendering path for the duplicated currency abbreviation. Done means the currency abbreviation appears once or not at all, matching the expected behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.