From: Galen Charlton Date: Thu, 13 Feb 2020 16:39:42 +0000 (-0500) Subject: eg-combobox: set a limit on number of entries fetched for idlClass X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=83c21dbf574da376650266d631ae367bb714b011;p=working%2FEvergreen.git eg-combobox: set a limit on number of entries fetched for idlClass The automatically-created data source for eg-combobox when used in idlClass will now limit itself to 100 entries in order to avoid scenarios where it attempts to fetch all patrons in the database or the like. Signed-off-by: Galen Charlton --- 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 8c1d1e6d4e..d7f03f01a6 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts @@ -192,6 +192,7 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit { const extra_args = { order_by : {} }; args[field] = {'ilike': `%${term}%`}; // could -or search on label extra_args['order_by'][this.idlClass] = field; + extra_args['limit'] = 100; if (this.idlIncludeLibraryInLabel) { extra_args['flesh'] = 1; const flesh_fields: Object = {};