Skip to content

[3.0 & 2.1]: Database error, duplicate entry, adding moderators to boards #9165

@sbulen

Description

@sbulen

Basic Information

From the forum: https://www.simplemachines.org/community/index.php?topic=594005.0

I cannot duplicate the issue, even with adding many, many moderators as well as moderator groups. The existing logic properly avoids trying to store dupes.

So it's hard to tell if this is a real bug, or, there's a little bit of mangled code somewhere due to mods/patching...

Still, @VBGAMER45's suggested fix looks safe & in general, a good idea...

Just change the insert from an 'insert' to an 'ignore'.

Steps to reproduce

Expected result

No response

Actual result

No response

Version/Git revision

2.1.7

Database Engine

All

Database Version

No response

PHP Version

No response

Logs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions