Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Multi usergroup joining causes bug
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

		$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

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

Forum Jump:

Users browsing this thread: 1 Guest(s)