-
Bug
-
Resolution: Won't Fix
-
Minor
-
3.0.11
-
None
-
PHP 5.3.8, Opera 12.02
ACP > Forums > Manage forums > Manage forums > Create new forum ("testforum") > Forum settings > Copy permissions from > ("otherforum"). Don't click once on the Submit button, do a doubleclick. Results in:
- creating the forum twice,
- adding or editing groups' user permissions twice and
- copying forum permissions twice.
Yet I haven't really grasped the whole thing. In /includes/acp/acp_forums.php we have this call:
copy_forum_permissions($forum_perm_from, $forum_data['forum_id'], ($action == 'edit') ? true : false);
|
// Clear current permissions of destination forums
|
if ($clear_dest_perms)
|
{
|
$sql = 'DELETE FROM ' . ACL_USERS_TABLE . '
|
WHERE ' . $db->sql_in_set('forum_id', $dest_forum_ids);
|
$db->sql_query($sql);
|
|
$sql = 'DELETE FROM ' . ACL_GROUPS_TABLE . '
|
WHERE ' . $db->sql_in_set('forum_id', $dest_forum_ids);
|
$db->sql_query($sql);
|
}
|
Simply re-editing the forum and re-copying the permissions from another forum solved the issue.
What I don't really get: why is the doubleclick "possible" at all? I mean: why doesn't interfere any form token from processing a (HTTP) request more than once? I'm a bit scared by what could go wrong to the whole board because I literally have the chance to doubleclick on a Submit button in so many different places.