Skip to content

Commit

Permalink
Fixed #14137
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 15, 2024
1 parent e73edcf commit 3426cb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Fixed a bug where `craft\db\Migration::renameTable()` was renaming the table for the primary database connection, rather than the migration’s connection. ([#14131](https://github.com/craftcms/cms/issues/14131))
- Fixed a bug where `Craft.FormObserver` wasn’t working reliably for non-`<form>` containers.
- Fixed a bug where Selectize inputs were triggering autosaves, even when the value didn’t change.
- Fixed a bug where custom source labels weren’t getting translated. ([#14137](https://github.com/craftcms/cms/issues/14137))

## 4.6.0 - 2024-01-09

Expand Down
8 changes: 7 additions & 1 deletion src/templates/_elements/sources.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@
{{ (svg(source.iconMask, sanitize=true, namespace=true) ?: "<span data-icon='#{source.iconMask}'></span>")|raw }}
</span>
{% endif %}
<span class="label">{{ source.label|trim is not same as('') ? source.label : '(blank)'|t('app') }}</span>
<span class="label">
{% if source.label|trim is not same as('') %}
{{ (source.type ?? null) == 'custom' ? source.label|t('site') : source.label }}
{% else %}
{{ '(blank)'|t('app') }}
{% endif %}
</span>
{% if source.badgeCount is defined %}
<span class="badge" aria-hidden="true">{{ source.badgeCount|number(decimals=0) }}</span>
{{ tag('span', {
Expand Down

0 comments on commit 3426cb3

Please sign in to comment.