diff --git a/core/users/app_config.php b/core/users/app_config.php index 6593d56f3c..8d3cb9ce48 100644 --- a/core/users/app_config.php +++ b/core/users/app_config.php @@ -276,16 +276,14 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'group_protected'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'group_description'; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'groupdesc'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; - $z++; - $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'group_unchanged'; - $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'groupdesc'; - $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; - $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; - $y = 2; //table array index $z = 0; //field array index diff --git a/core/users/groups.php b/core/users/groups.php index 1011bd7408..ebdff5fbfe 100644 --- a/core/users/groups.php +++ b/core/users/groups.php @@ -45,21 +45,18 @@ else { //show the header require_once "resources/header.php"; $page["title"] = $text['title-group_manager']; - if (isset($_REQUEST["change"])) { //get the values from the HTTP POST and save them as PHP variables $change = check_str($_REQUEST["change"]); $group_name = check_str($_REQUEST["group_name"]); $sql = "update v_groups set "; - $sql .= "group_unchanged = '$change' "; + $sql .= "group_protected = '$change' "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and group_name = '$group_name' "; $db->exec(check_sql($sql)); unset($sql); } - - //show the content echo "