Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,17 @@ class page_action extends tform_actions { ...@@ -49,6 +49,17 @@ class page_action extends tform_actions {
//* call the onShow function of the parent class //* call the onShow function of the parent class
parent::onShow(); 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 //* Create the new page object
......
...@@ -12,7 +12,7 @@ $app->auth->check_module_permissions('help'); ...@@ -12,7 +12,7 @@ $app->auth->check_module_permissions('help');
$app->uses('listform_actions'); $app->uses('listform_actions');
//* Optional limit //* 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 //* Start the form rendering and action ahndling
$app->listform_actions->onLoad(); $app->listform_actions->onLoad();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment