Skip to content

Commit 472c2cc

Browse files
committed
Fixed: FS#2374 - MySQL error under Support > Send Message
1 parent 0b1024d commit 472c2cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interface/web/help/form/support_message.tform.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
}
5555
}
5656

57+
$authsql = $app->tform->getAuthSQL('r', 'client');
58+
5759
//* Begin of the form definition of the first tab. The name of the tab is called "message". We refer
5860
//* to this name in the $form["tab_default"] setting above.
5961
$form["tabs"]['message'] = array (
@@ -69,7 +71,7 @@
6971
'formtype' => 'SELECT',
7072
'default' => $sm_default_recipient_id,
7173
'datasource' => array ( 'type' => 'SQL',
72-
'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",
74+
'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",
7375
'keyfield' => 'userid',
7476
'valuefield' => 'contactname'
7577
),

0 commit comments

Comments
 (0)