From 9683d304b34ab0248ac9156650e8d4d8cdf17b1e Mon Sep 17 00:00:00 2001 From: Florian Schaal Date: Sat, 20 Aug 2016 10:37:37 +0200 Subject: [PATCH] Fixes #4121 - [3.1rc1] User can not view submitted Support Messages --- interface/web/help/support_message_list.php | 3 ++- .../web/help/templates/support_message_list.htm | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/interface/web/help/support_message_list.php b/interface/web/help/support_message_list.php index 02b50aaec4..dd9fd1183f 100644 --- a/interface/web/help/support_message_list.php +++ b/interface/web/help/support_message_list.php @@ -12,7 +12,8 @@ $app->auth->check_module_permissions('help'); $app->uses('listform_actions'); //* Optional limit -$app->listform_actions->SQLExtWhere = "support_message.recipient_id = ".$app->functions->intval($_SESSION['s']['user']['userid']); +$userid=$app->functions->intval($_SESSION['s']['user']['userid']); +$app->listform_actions->SQLExtWhere = "support_message.recipient_id = $userid OR support_message.sender_id = $userid"; //* Start the form rendering and action ahndling $app->listform_actions->onLoad(); diff --git a/interface/web/help/templates/support_message_list.htm b/interface/web/help/templates/support_message_list.htm index 1695cccd77..3094b96728 100644 --- a/interface/web/help/templates/support_message_list.htm +++ b/interface/web/help/templates/support_message_list.htm @@ -16,13 +16,13 @@ - + - + - + - + - +
{tmpl_var name='search_limit'}
  @@ -33,7 +33,7 @@
{tmpl_var name="sender_id"}{tmpl_var name="sender_id"} {tmpl_var name="subject"} {tmpl_var name="tstamp"} @@ -43,16 +43,16 @@
{tmpl_var name='globalsearch_noresults_text_txt'}{tmpl_var name='globalsearch_noresults_text_txt'}
- \ No newline at end of file + -- GitLab