LP#1929749: combobox: improve idlIncludeLibraryInLabel
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 13 Jan 2022 15:29:47 +0000 (10:29 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 29 Aug 2022 22:43:58 +0000 (22:43 +0000)
This option no longer requires that the OU field be
fleshed.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts

index c9885bf..390e6bc 100644 (file)
@@ -251,7 +251,7 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie
                 default:
                     const field = this.idlField;
                     if (this.idlIncludeLibraryInLabel) {
-                        return fm[field]() + ' (' + fm[this.idlIncludeLibraryInLabel]().shortname() + ')';
+                        return fm[field]() + ' (' + this.getOrgShortname(fm[this.idlIncludeLibraryInLabel]()) + ')';
                     } else {
                         return fm[field]();
                     }