Skip to content

Commit a556307

Browse files
committed
Use formattedId in autocompleter and global search results
These templates were still using hard-coded #{{ item.id }} which shows the numeric PK instead of the semantic identifier in search dropdowns and autocomplete results.
1 parent e1cac12 commit a556307

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/app/core/global_search/input/global-search-input.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<span [ngClass]="highlighting('type', item.type.id)">
8989
{{ item.type.name }}
9090
</span>
91-
<span>#{{ item.id }}</span>
91+
<span>{{ item.formattedId }}</span>
9292
<span [ngClass]="statusHighlighting(item.status.id)">
9393
{{ item.status.name }}
9494
</span>

frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
<span
178178
class="op-autocompleter--wp-id"
179179
[ngOptionHighlight]="search"
180-
>#{{ item.id }}</span>
180+
>{{ item.formattedId }}</span>
181181
<span
182182
[textContent]="item.status?.name"
183183
[ngClass]="highlighting('status',item.status?.id)"
@@ -232,7 +232,7 @@
232232
class="ng-value-label"
233233
[ngOptionHighlight]="search"
234234
>
235-
{{ item.type?.name }} #{{ item.id }} {{ item.subject || item.name }}
235+
{{ item.type?.name }} {{ item.formattedId }} {{ item.subject || item.name }}
236236
</span>
237237
}
238238
}

0 commit comments

Comments
 (0)