From 0d752077bbd95c0925a2b1a2e964b986bf562d4e Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 25 Nov 2023 12:35:11 +0200 Subject: [PATCH] setting info_modifier for new entries before sending data to client-side to allow to use it in template-selection --- infolog/inc/class.infolog_ui.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index d933ceb64b..f7b140f20b 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -2052,13 +2052,14 @@ class infolog_ui { Framework::window_close(lang('Permission denied!')); } - if (is_numeric($_REQUEST['cat_id'])) - { - $content['info_cat'] = (int)$_REQUEST['cat_id']; - } if (!$content) { $content['info_cat'] = $this->prefs['cat_add_default']; + $content['info_modifier'] = $GLOBALS['egw_info']['user']['account_id']; + } + if (is_numeric($_REQUEST['cat_id'])) + { + $content['info_cat'] = (int)$_REQUEST['cat_id']; } if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML!