]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: dropdown with different bindlabel (#5134)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 28 Dec 2023 16:30:52 +0000 (08:30 -0800)
committerGitHub <noreply@github.com>
Thu, 28 Dec 2023 16:30:52 +0000 (08:30 -0800)
src-ui/src/app/components/common/input/select/select.component.html

index 3a10b0019d3474196f1d74b7e4740be540024e6e..617799a7224cada8713b83df84cce0935d5c9380 100644 (file)
@@ -35,7 +35,7 @@
             (clear)="clearLastSearchTerm()"
             (blur)="onBlur()">
             <ng-template ng-option-tmp let-item="item">
-                <span [title]="item.name">{{item.name}}</span>
+                <span [title]="item[bindLabel]">{{item[bindLabel]}}</span>
             </ng-template>
           </ng-select>
           @if (allowCreateNew) {