MyBB Community Forums

Full Version: [F] Multi usergroup joining causes bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
reproducing procedure :

A user wants to join 2 groups, he applies to do so.

The group master accept him in one of them, and when he goes to accept him in the second group the application has disappeared.
This bug has been fixed in the latest code.

Please note the latest code is not live on the site or for download. An update will be released which contains this fix.
Manual Fix Instructions:

Open managegroup.php

Find:
		$db->delete_query(TABLE_PREFIX."joinrequests", "uid IN ({$uids})");

Replace with:
		$db->delete_query(TABLE_PREFIX."joinrequests", "uid IN ({$uids}) AND gid='$gid'");

Open up admin/usergroups.php

Find:
		$db->query("DELETE FROM ".TABLE_PREFIX."joinrequests WHERE uid IN($uids)");

Replace with:
		$db->query("DELETE FROM ".TABLE_PREFIX."joinrequests WHERE uid IN($uids) AND gid='{$mybb->input['gid']}'");
Thanks