summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Export/TaskExport.php4
-rw-r--r--tests/units/Export/TaskExportTest.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/app/Export/TaskExport.php b/app/Export/TaskExport.php
index f47cd082..3019906d 100644
--- a/app/Export/TaskExport.php
+++ b/app/Export/TaskExport.php
@@ -83,7 +83,8 @@ class TaskExport extends Base
TaskModel::TABLE . '.date_completed',
TaskModel::TABLE . '.date_started',
TaskModel::TABLE . '.time_estimated',
- TaskModel::TABLE . '.time_spent'
+ TaskModel::TABLE . '.time_spent',
+ TaskModel::TABLE . '.priority'
)
->join(UserModel::TABLE, 'id', 'owner_id', TaskModel::TABLE)
->left(UserModel::TABLE, 'uc', 'id', TaskModel::TABLE, 'creator_id')
@@ -152,6 +153,7 @@ class TaskExport extends Base
e('Start date'),
e('Time estimated'),
e('Time spent'),
+ e('Priority'),
);
}
}
diff --git a/tests/units/Export/TaskExportTest.php b/tests/units/Export/TaskExportTest.php
index 8e0be433..c57c5259 100644
--- a/tests/units/Export/TaskExportTest.php
+++ b/tests/units/Export/TaskExportTest.php
@@ -42,7 +42,7 @@ class TaskExportTest extends Base
$report = $taskExport->export(1, date('Y-m-d'), date('Y-m-d'));
$this->assertCount(3, $report);
- $this->assertCount(22, $report[0]);
+ $this->assertCount(23, $report[0]);
$this->assertEquals('Task Id', $report[0][0]);
$this->assertEquals(1, $report[1][0]);