From e984ccf9a46f0db3598af4dccf71845ed2bdfdde Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 3 Aug 2022 10:51:28 -0600 Subject: [PATCH] Fix double categories in nextmatch --- api/src/Etemplate/Widget/Nextmatch.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/src/Etemplate/Widget/Nextmatch.php b/api/src/Etemplate/Widget/Nextmatch.php index 97febabcec..526c112eeb 100644 --- a/api/src/Etemplate/Widget/Nextmatch.php +++ b/api/src/Etemplate/Widget/Nextmatch.php @@ -196,7 +196,6 @@ class Nextmatch extends Etemplate\Widget // Send categories if(empty($value['no_cat']) && empty($value['cat_is_select'])) { - $cat_app = $value['cat_app'] ?? $GLOBALS['egw_info']['flags']['current_app'] ?? ''; $value['options-cat_id'] = self::$request->sel_options['cat_id'] ?? []; // Add 'All', if not already there @@ -204,9 +203,6 @@ class Nextmatch extends Etemplate\Widget { $value['options-cat_id'][''] = lang('All categories'); } - $no_lang = true; - $value['options-cat_id'] += Select::typeOptions('select-cat', ',,'.$cat_app,$no_lang,false,$value['cat_id']); - Select::fix_encoded_options($value['options-cat_id']); } // Favorite group for admins