Commit 51bedadf authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#948 - Help Module bug, Client cannot read the messages sended by Admin

parent 8ee18071
......@@ -49,6 +49,17 @@ class page_action extends tform_actions {
//* call the onShow function of the parent class
parent::onShow();
}
function onAfterInsert()
{
global $app, $conf;
if($_SESSION['s']['user']['typ'] == 'admin') {
$app->db->query("UPDATE support_message SET sys_userid = ".$this->dataRecord['recipient_id']." WHERE support_message_id = ".$this->id);
}
}
}
//* Create the new page object
......
......@@ -12,7 +12,7 @@ $app->auth->check_module_permissions('help');
$app->uses('listform_actions');
//* Optional limit
// $app->listform_actions->SQLExtWhere = "type = 'alias'";
$app->listform_actions->SQLExtWhere = "recipient_id = ".$_SESSION['s']['user']['userid'];
//* Start the form rendering and action ahndling
$app->listform_actions->onLoad();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment