Skip to content

Commit 51bedad

Browse files
committed
Fixed: FS#948 - Help Module bug, Client cannot read the messages sended by Admin
1 parent 8ee1807 commit 51bedad

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

interface/web/help/support_message_edit.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ function onShow()
4949
//* call the onShow function of the parent class
5050
parent::onShow();
5151
}
52+
53+
function onAfterInsert()
54+
{
55+
global $app, $conf;
56+
57+
if($_SESSION['s']['user']['typ'] == 'admin') {
58+
$app->db->query("UPDATE support_message SET sys_userid = ".$this->dataRecord['recipient_id']." WHERE support_message_id = ".$this->id);
59+
}
60+
61+
}
62+
5263
}
5364

5465
//* Create the new page object

interface/web/help/support_message_list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
$app->uses('listform_actions');
1313

1414
//* Optional limit
15-
// $app->listform_actions->SQLExtWhere = "type = 'alias'";
15+
$app->listform_actions->SQLExtWhere = "recipient_id = ".$_SESSION['s']['user']['userid'];
1616

1717
//* Start the form rendering and action ahndling
1818
$app->listform_actions->onLoad();

0 commit comments

Comments
 (0)