From 26644f6975e1f845d86c0faf2d1bf47278905c7a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Feb 2020 11:39:42 -0500 Subject: [PATCH] LP#1850547: 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. Sponsored-by: Evergreen Community Development Initiative Sponsored-by: Georgia Public Library Service Sponsored-by: Indiana State Library Sponsored-by: C/W MARS Signed-off-by: Galen Charlton Signed-off-by: Tiffany Little Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts | 1 + 1 file changed, 1 insertion(+) 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 56da7479e0..215323966b 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 @@ -198,6 +198,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 = {}; -- 2.11.0