From b20f57d5ba1bb511d2a5ab48eb4c96a52a866657 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 19 Jul 2022 11:55:08 -0600 Subject: [PATCH] Fix select-type would not validate server side --- api/src/Etemplate/Widget/Select.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Select.php b/api/src/Etemplate/Widget/Select.php index bb6d3d006b..d53b901284 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -829,9 +829,10 @@ class Select extends Etemplate\Widget $no_lang = True; break; - case 'select-app': // type2: 'user'=apps of current user, 'enabled', 'installed' (default), 'all' = not installed ones too + case 'select-tab': + case 'select-app': // type2: 'user'=apps of current user, 'enabled', 'installed' (default), 'all' = not installed ones too $apps = self::app_options($type2); - $options = is_array($options) ? $options+$apps : $apps; + $options = is_array($options) ? $options + $apps : $apps; break; case 'select-lang':