Skip to content

logActions can get invalid id_member when called from Scheduled tasks #7546

@DiegoAndresCortes

Description

@DiegoAndresCortes

When triggering removeMembersFromGroups using a scheduled task, it calls logAction > logActions to log the changes.
When using a scheduled task, id_member might be 0, causing the following:

The database value you're trying to insert does not exist: id_member
Function: logActions

Culprit:
https://github.com/SimpleMachines/SMF/blob/release-2.1/Sources/Logging.php#L539-L542

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions