MyBB Community Forums
[F] Multi usergroup joining causes bug - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.2.2 (https://community.mybb.com/forum-49.html)
+------ Thread: [F] Multi usergroup joining causes bug (/thread-15686.html)



[F] Multi usergroup joining causes bug - DuAel - 2007-01-24

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.


RE: [F] Multi usergroup joining causes bug - Chris Boulton - 2007-01-26

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.


RE: Multi usergroup joining causes bug - Chris Boulton - 2007-01-26

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']}'");



RE: [F] Multi usergroup joining causes bug - DuAel - 2007-01-27

Thanks