From 472c2ccb6df89e86d5f5a7632492199f99b5760d Mon Sep 17 00:00:00 2001 From: tbrehm Date: Wed, 15 Aug 2012 08:42:00 +0000 Subject: [PATCH] Fixed: FS#2374 - MySQL error under Support > Send Message --- interface/web/help/form/support_message.tform.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/web/help/form/support_message.tform.php b/interface/web/help/form/support_message.tform.php index ce80e0391..29c337fc5 100644 --- a/interface/web/help/form/support_message.tform.php +++ b/interface/web/help/form/support_message.tform.php @@ -54,6 +54,8 @@ if(isset($_GET['reply'])) } } +$authsql = $app->tform->getAuthSQL('r', 'client'); + //* Begin of the form definition of the first tab. The name of the tab is called "message". We refer //* to this name in the $form["tab_default"] setting above. $form["tabs"]['message'] = array ( @@ -69,7 +71,7 @@ $form["tabs"]['message'] = array ( 'formtype' => 'SELECT', 'default' => $sm_default_recipient_id, 'datasource' => array ( 'type' => 'SQL', - 'querystring' => "SELECT sys_user.userid, CONCAT(sys_user.username,' :: ',client.company_name,' :: ',client.contact_name) as contactname FROM sys_user, client WHERE sys_user.userid != 1 AND sys_user.client_id = client.client_id AND {AUTHSQL} ORDER BY sys_user.username", + 'querystring' => "SELECT sys_user.userid, CONCAT(sys_user.username,' :: ',client.company_name,' :: ',client.contact_name) as contactname FROM sys_user, client WHERE sys_user.userid != 1 AND sys_user.client_id = client.client_id AND $authsql ORDER BY sys_user.username", 'keyfield' => 'userid', 'valuefield' => 'contactname' ), -- GitLab