projects
/
evergreen-equinox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
LP1811288 Allow Combobox to default to field id
[evergreen-equinox.git]
/
Open-ILS
/
src
/
eg2
/
src
/
app
/
share
/
combobox
/
combobox.component.ts
diff --git
a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
index
272a271
..
8b018d5
100644
(file)
--- a/
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
+++ b/
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
@@
-102,7
+102,8
@@
export class ComboboxComponent implements OnInit {
this.defaultSelectionApplied = false;
this.formatDisplayString = (result: ComboboxEntry) => {
- return result.label.trim();
+ const display = result.label || result.id;
+ return (display + '').trim();
};
}