From 19a45164f97562a0eb296778a9ad8615e408d043 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 7 Jul 2022 10:49:28 -0600 Subject: [PATCH] Change static cat select options to always use promise --- api/js/etemplate/Et2Select/StaticOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Select/StaticOptions.ts b/api/js/etemplate/Et2Select/StaticOptions.ts index 4b38e253a8..74154f507f 100644 --- a/api/js/etemplate/Et2Select/StaticOptions.ts +++ b/api/js/etemplate/Et2Select/StaticOptions.ts @@ -233,7 +233,7 @@ export class StaticOptions return this.cached_server_side(widget, 'select-app', options); } - cat(widget : Et2SelectWidgets) : SelectOption[] + cat(widget : Et2SelectWidgets) : Promise { var options = [widget.global_categories, /*?*/, widget.application, widget.parent_cat]; @@ -244,7 +244,7 @@ export class StaticOptions (widget.getInstanceManager() && widget.getInstanceManager().app) || widget.egw().app_name(); } - return this.cached_server_side(widget, 'select-cat', options.join(',')) + return >this.cached_server_side(widget, 'select-cat', options.join(','), true); } country(widget : Et2SelectWidgets, attrs, return_promise) : SelectOption[]|Promise