-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
[ticket/10899] Using Delete All in log viewer with keyword search #2433
Conversation
As per IRC the log class should perform the deleting |
PHPBB3-10899
PHPBB3-10899
Code looks good, but tests for |
@@ -26,7 +26,7 @@ function main($id, $mode) | |||
{ | |||
global $db, $user, $auth, $template, $cache, $phpbb_container; | |||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx; | |||
global $request; | |||
global $request, $phpbb_log; |
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.
Get from container?
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.
updated
I agree |
PHPBB3-10899
} | ||
|
||
$sql = 'DELETE FROM ' . LOG_TABLE . " | ||
$sql_where"; |
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.
tabs are off?
It should be "the same as before $sql
" + 1
PHPBB3-10899
PHPBB3-10899
PHPBB3-10899
$log_type = false; | ||
} | ||
|
||
if ($log_type === false) |
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.
Add an event for extensions before this?
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.
core.log_delete_before?
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.
yes, but see core.add_log and add a similar NOTE about the log_type
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.
ok
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.
updated
PHPBB3-10899
PHPBB3-10899
* NOTE: if sql_ary does not contain a log_type value, the entry will | ||
* not be deleted in the database. So ensure to set it, if needed. | ||
* | ||
* @event core.add_log |
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.
*core.delete_log
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.
updated
PHPBB3-10899
[ticket/10899] Using Delete All in log viewer with keyword search * Nicofuma/ticket/10899: [ticket/10899] Update doc block [ticket/10899] Use isset($field_value['IN']) [ticket/10899] Add event core.delete_log [ticket/10899] Remove trailing ; [ticket/10899] Fix typo in the class name [ticket/10899] Add unit tests [ticket/10899] Get $phpbb_log from the container [ticket/10899] Remove extra ';' [ticket/10899] Typo [ticket/10899] Refactoring in \phpbb\log\log_interface [ticket/10899] Using Delete All in log viewer with keyword search
https://tracker.phpbb.com/browse/PHPBB3-10899
PHPBB3-10899