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
ISPConfig
ISPConfig 3
Commits
9683d304
Commit
9683d304
authored
Aug 20, 2016
by
Florian Schaal
Browse files
Fixes #4121 - [3.1rc1] User can not view submitted Support Messages
parent
9e6aa5d0
Changes
2
Show whitespace changes
Inline
Side-by-side
interface/web/help/support_message_list.php
View file @
9683d304
...
...
@@ -12,7 +12,8 @@ $app->auth->check_module_permissions('help');
$app
->
uses
(
'listform_actions'
);
//* Optional limit
$app
->
listform_actions
->
SQLExtWhere
=
"support_message.recipient_id = "
.
$app
->
functions
->
intval
(
$_SESSION
[
's'
][
'user'
][
'userid'
]);
$userid
=
$app
->
functions
->
intval
(
$_SESSION
[
's'
][
'user'
][
'userid'
]);
$app
->
listform_actions
->
SQLExtWhere
=
"support_message.recipient_id =
$userid
OR support_message.sender_id =
$userid
"
;
//* Start the form rendering and action ahndling
$app
->
listform_actions
->
onLoad
();
...
...
interface/web/help/templates/support_message_list.htm
View file @
9683d304
...
...
@@ -16,13 +16,13 @@
<table
class=
"table"
>
<thead
class=
"dark form-group-sm"
>
<tr>
<th
data-column=
"sender_id"
><tmpl_var
name=
"sender_id_txt"
></th>
<tmpl_if
name=
"is_admin"
>
<th
data-column=
"sender_id"
><tmpl_var
name=
"sender_id_txt"
></th>
</tmpl_if>
<th
data-column=
"subject"
><tmpl_var
name=
"subject_txt"
></th>
<th
data-column=
"date"
><tmpl_var
name=
"date_txt"
></th>
<th
class=
"small-col text-right"
>
{tmpl_var name='search_limit'}
</th>
</tr>
<tr>
<td><select
class=
"form-control"
name=
"search_sender_id"
>
{tmpl_var name='search_sender_id'}
</select></td>
<tmpl_if
name=
"is_admin"
>
<td><select
class=
"form-control"
name=
"search_sender_id"
>
{tmpl_var name='search_sender_id'}
</select></td>
</tmpl_if>
<td><input
class=
"form-control"
type=
"text"
name=
"search_subject"
value=
"{tmpl_var name='search_subject'}"
/></td>
<td>
</td>
<td
class=
"text-right"
>
...
...
@@ -33,7 +33,7 @@
<tbody>
<tmpl_loop
name=
"records"
>
<tr>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="sender_id"}
</a></td>
<tmpl_if
name=
"is_admin"
>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="sender_id"}
</a></td>
</tmpl_if>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="subject"}
</a></td>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="tstamp"}
</a></td>
<td
class=
"text-right"
>
...
...
@@ -43,13 +43,13 @@
</tmpl_loop>
<tmpl_unless
name=
"records"
>
<tr
class=
"tbl_row_noresults tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"
>
<td
colspan=
"
4"
>
{tmpl_var name='globalsearch_noresults_text_txt'}
</td>
<tmpl_if
name=
"is_admin"
><td
colspan=
"4"
><tmpl_else>
<td
colspan=
"
3"
></tmpl_if
>
{tmpl_var name='globalsearch_noresults_text_txt'}
</td>
</tr>
</tmpl_unless>
</tbody>
<tfoot>
<tr>
<t
d
colspan=
"4"
><tmpl_var
name=
"paging"
></td>
<t
mpl_if
name=
"is_admin"
><td
colspan=
"4"
><tmpl_else><td
colspan=
"3"
></tmpl_if
><tmpl_var
name=
"paging"
></td>
</tr>
</tfoot>
</table>
...
...
Florian Schaal
@florian030
mentioned in issue
#4122 (closed)
·
Aug 22, 2016
mentioned in issue
#4122 (closed)
mentioned in issue #4122
Toggle commit list
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