BUG in 1.7,4 when you add latest updates ("checkbox" selector type)
Description: When "checkbox" is selected (default setting now) you don't change category permission to "No"
file:
admin/usergroups.php
find:
1 2 3 4 5
| foreach ($auth as $key => $val) { $sql = "DELETE FROM ".GROUP_ACCESS_TABLE." WHERE cat_id = $key AND group_id = $group_id"; $site_db->query($sql);
|
replace with:
1 2 3 4 5
| $sql = "DELETE FROM ".GROUP_ACCESS_TABLE." WHERE group_id = $group_id"; $site_db->query($sql); foreach ($auth as $key => $val) {
|
Also I recommend this changes for correct look:
find:
1
| echo "<td class=\"tableseparator\" width=\"".$col_width."%\" align=\"center\"><input name=\"allbox[".$val."]\" type=\"checkbox\" onClick=\"CheckAllCats(this, '".$val."');\" />".$lang[$val]."</td>\n";
|
replace with:
1
| echo "<td class=\"tableseparator\" width=\"".$col_width."%\" align=\"center\">".($permission_select_type == "checkbox" ? "<input name=\"allbox[".$val."]\" type=\"checkbox\" onClick=\"CheckAllCats(this, '".$val."');\" />":"").$lang[$val]."</td>\n";
|