Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

homepage: use new ConsistencyCheck class

  • Loading branch information...
commit 24989c73cec3288f319023b7cc151d5a36535851 1 parent 734fabb
@lbayle lbayle authored
Showing with 8 additions and 7 deletions.
  1. +8 −7 index.php
View
15 index.php
@@ -37,6 +37,7 @@
$logger = Logger::getLogger("homepage");
include_once('consistency_check.class.php');
+include_once('consistency_check2.class.php');
include_once('user.class.php');
include_once('issue.class.php');
@@ -88,6 +89,7 @@ function getIssuesInDrift($userid) {
return $driftedTasks;
}
+
/**
* Get consistency errors
* @param int User's id
@@ -95,14 +97,12 @@ function getIssuesInDrift($userid) {
function getConsistencyErrors($userid) {
$sessionUser = UserCache::getInstance()->getUser($userid);
- // get projects i'm involved in (dev, Leader, Manager)
- $devTeamList = $sessionUser->getDevTeamList();
- $leadedTeamList = $sessionUser->getLeadedTeamList();
- $managedTeamList = $sessionUser->getManagedTeamList();
- $teamList = $devTeamList + $leadedTeamList + $managedTeamList;
- $projectList = $sessionUser->getProjectList($teamList);
+ $teamList = $sessionUser->getTeamList();
+ $projList = $sessionUser->getProjectList($teamList);
+
+ $issueList = $sessionUser->getAssignedIssues($projList);
- $ccheck = new ConsistencyCheck($projectList);
+ $ccheck = new ConsistencyCheck2($issueList);
$cerrList = $ccheck->check();
@@ -123,6 +123,7 @@ function getConsistencyErrors($userid) {
return $consistencyErrors;
}
+
// ================ MAIN =================
// updateRemaining DialogBox
Please sign in to comment.
Something went wrong with that request. Please try again.