X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/83987222fbafb8d6dbbbd9578ed2f949f65004d3..8e43fd9aa4cd7ec0d3dd806393ba03967f5050b2:/dbinstall.php
diff --git a/dbinstall.php b/dbinstall.php
index d5059444..31d5fbf1 100644
--- a/dbinstall.php
+++ b/dbinstall.php
@@ -789,10 +789,10 @@ if ($_POST) {
if (is_a($result, 'PEAR_Error')) die($result->getMessage());
$row = $result->fetchRow();
if ($row['count'] == 0)
- ttRoleHelper::createPredefinedRoles($team_id, $lang);
+ ttRoleHelper::createPredefinedRoles_1_17_44($team_id, $lang);
// Obtain new role id based on legacy role.
- $role_id = ttRoleHelper::getRoleByRank($legacy_role, $team_id);
+ $role_id = ttRoleHelper::getRoleByRank_1_17_44($legacy_role, $team_id);
if (!$role_id) continue; // Role not found, nothing to do.
$sql = "update tt_users set role_id = $role_id where id = $user_id and team_id = $team_id";
@@ -904,13 +904,13 @@ if ($_POST) {
if ($_POST["cleanup"]) {
$mdb2 = getConnection();
- $inactive_teams = ttTeamHelper::getInactiveGroups();
+ $inactive_groups = ttTeamHelper::getInactiveGroups();
- $count = count($inactive_teams);
- print "$count inactive teams found...
\n";
+ $count = count($inactive_groups);
+ print "$count inactive groups found...
\n";
for ($i = 0; $i < $count; $i++) {
- print " deleting team ".$inactive_teams[$i]."
\n";
- $res = ttTeamHelper::delete($inactive_teams[$i]);
+ print " deleting group ".$inactive_groups[$i]."
\n";
+ $res = ttTeamHelper::delete($inactive_groups[$i]);
}
setChange("OPTIMIZE TABLE tt_client_project_binds");