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


Forum Jump:


Users browsing this thread: 1 Guest(s)