mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Fix double categories in nextmatch
This commit is contained in:
parent
054ac0fa62
commit
e984ccf9a4
@ -196,7 +196,6 @@ class Nextmatch extends Etemplate\Widget
|
|||||||
// Send categories
|
// Send categories
|
||||||
if(empty($value['no_cat']) && empty($value['cat_is_select']))
|
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'] ?? [];
|
$value['options-cat_id'] = self::$request->sel_options['cat_id'] ?? [];
|
||||||
|
|
||||||
// Add 'All', if not already there
|
// Add 'All', if not already there
|
||||||
@ -204,9 +203,6 @@ class Nextmatch extends Etemplate\Widget
|
|||||||
{
|
{
|
||||||
$value['options-cat_id'][''] = lang('All categories');
|
$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
|
// Favorite group for admins
|
||||||
|
Loading…
Reference in New Issue
Block a user