diff options
author | rechosen <rechosen@gmail.com> | 2013-09-04 13:37:39 +0200 |
---|---|---|
committer | rechosen <rechosen@gmail.com> | 2013-09-04 13:37:39 +0200 |
commit | 77845e366e8a5578ad740186cf71d75be32694bc (patch) | |
tree | ae10b687c70b5f1a01fbf8429650094a4f8ad179 /phpBB/includes/mcp/mcp_reports.php | |
parent | f446afa06b3642a24a548699b69c5b7bc4a35edb (diff) | |
download | forums-77845e366e8a5578ad740186cf71d75be32694bc.tar forums-77845e366e8a5578ad740186cf71d75be32694bc.tar.gz forums-77845e366e8a5578ad740186cf71d75be32694bc.tar.bz2 forums-77845e366e8a5578ad740186cf71d75be32694bc.tar.xz forums-77845e366e8a5578ad740186cf71d75be32694bc.zip |
[ticket/11829] Use report_closed to determine status in MCP report_details
Instead of using post_reported of the post or message_reported of the pm, use
report_closed of the report itself to reliably determine whether this
particular report is closed or not in the report_details view of the MCP.
This fixes a bug where the report_details view would not show that the report
shown was closed and display a "Close report" button that had no effect.
PHPBB3-11829
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_reports.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index def5422be2..b13c8b20c6 100644 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -192,6 +192,7 @@ class mcp_reports 'S_POST_REPORTED' => $post_info['post_reported'], 'S_POST_UNAPPROVED' => !$post_info['post_approved'], 'S_POST_LOCKED' => $post_info['post_edit_locked'], + 'S_REPORT_CLOSED' => $report['report_closed'], 'S_USER_NOTES' => true, 'U_EDIT' => ($auth->acl_get('m_edit', $post_info['forum_id'])) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f={$post_info['forum_id']}&p={$post_info['post_id']}") : '', |