-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report #8186
Report #8186
Conversation
Sources/Actions/Admin/Reports.php
Outdated
@@ -335,11 +300,11 @@ public function boards(): void | |||
$boardData['groups'] = implode(', ', $allowedGroups); | |||
|
|||
if (!empty(Config::$modSettings['deny_boards_access'])) { | |||
$disallowedGroups = explode(',', $row['deny_member_groups']); | |||
$disallowedGroups = explode(',', $board->deny_member_groups); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line causes PHP to die with the following fatal error:
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /path/to/forum/Sources/Actions/Admin/Reports.php:303 Stack trace: #0 /path/to/forum/Sources/Actions/Admin/Reports.php(303): explode(',', Array) #1 [internal function]: SMF\Actions\Admin\Reports->boards() #2 /path/to/forum/Sources/Actions/Admin/Reports.php(194): call_user_func(Array) #3 /path/to/forum/Sources/Actions/Admin/Reports.php(642): SMF\Actions\Admin\Reports->execute() #4 [internal function]: SMF\Actions\Admin\Reports::call() #5 /path/to/forum/Sources/Actions/Admin/ACP.php(786): call_user_func(Array) #6 /path/to/forum/Sources/Actions/Admin/ACP.php(813): SMF\Actions\Admin\ACP->execute() #7 [internal function]: SMF\Actions\Admin\ACP::call() #8 /path/to/forum/Sources/Forum.php(263): call_user_func(Array) #9 /path/to/forum/index.php(146): SMF\Forum->execute() #10 {main} thrown in /path/to/forum/Sources/Actions/Admin/Reports.php on line 303
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Themes/default/scripts/reports.js
Outdated
|
||
//~ positions.push(positions[positions.length - 1] + positions[positions.length - 2]); | ||
//~ return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete?
Sounds nice. Yes, please! |
Signed-off-by: John Rayes <[email protected]>
Signed-off-by: John Rayes <[email protected]>
Signed-off-by: John Rayes <[email protected]>
added those extra checkboxes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The Board Access report uses the wrong title in the cat_bars.
- There is a useless duplicate table for each board in the Boards report.
Perhaps some more work needs to go into the logic that breaks up wide tables? - The checkboxes don't do anything. I suggested changing
<style>
to<script>
below, which is necessary. However, even after I did that in my own tests, the JavaScript ran into syntax errors that will need to be fixed.
Signed-off-by: John Rayes <[email protected]>
Signed-off-by: John Rayes <[email protected]>
Signed-off-by: John Rayes <[email protected]>
I also have some code that adds checkboxes to filter the results by category mainly useful for board permissions. Shall I add a commit for that?