Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
51bedadf
Commit
51bedadf
authored
Oct 30, 2009
by
tbrehm
Browse files
Fixed: FS#948 - Help Module bug, Client cannot read the messages sended by Admin
parent
8ee18071
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/help/support_message_edit.php
View file @
51bedadf
...
...
@@ -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
...
...
interface/web/help/support_message_list.php
View file @
51bedadf
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment