Skip to content
Permalink
Browse files

changed the task sort order so it should always be consistent regardl…

…ess of underlying ids;

Resolves: http://bugs.web2project.net/view.php?id=1409
  • Loading branch information
caseysoftware committed Dec 23, 2013
1 parent e4f406a commit 26c4ee1ded4791760be746b0cb1d5be39e59db25
Showing with 4 additions and 3 deletions.
  1. +2 −1 modules/projectdesigner/vw_tasks.php
  2. +2 −2 modules/tasks/tasks.php
@@ -161,7 +161,8 @@
$q->addWhere($allowedTasks);
}
$q->addGroup('tasks.task_id');
$q->addOrder('task_start_date');

$q->addOrder('task_start_date, task_end_date, task_name');
if ($canViewTasks) {
$tasks = $q->loadList();
}
@@ -318,9 +318,9 @@
if (!$project_id && !$task_id) {
$q->addOrder('p.project_id, task_start_date, task_end_date');
} else {
$q->addOrder('task_start_date, task_end_date');
$q->addOrder('task_start_date, task_end_date, task_name');
}
//print_r($q->prepare());

if ($canViewTask) {
$tasks = $q->loadList();
}

0 comments on commit 26c4ee1

Please sign in to comment.
You can’t perform that action at this time.