summaryrefslogtreecommitdiff
path: root/app/Export/TaskExport.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-18 09:42:01 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-18 09:42:01 -0500
commitde128dbad860478496a0d655b5eb5c1005ebbabe (patch)
tree7fee510e901273472731e8e843981268c593ec40 /app/Export/TaskExport.php
parent0430a09c069134622c0161dc2fb9ba3718a73c0d (diff)
Remove default swimlane
Diffstat (limited to 'app/Export/TaskExport.php')
-rw-r--r--app/Export/TaskExport.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/Export/TaskExport.php b/app/Export/TaskExport.php
index 9ca5f798..f47cd082 100644
--- a/app/Export/TaskExport.php
+++ b/app/Export/TaskExport.php
@@ -31,11 +31,10 @@ class TaskExport extends Base
{
$tasks = $this->getTasks($project_id, $from, $to);
$colors = $this->colorModel->getList();
- $defaultSwimlane = $this->swimlaneModel->getDefault($project_id);
$results = array($this->getColumns());
foreach ($tasks as &$task) {
- $task = $this->format($task, $defaultSwimlane['default_swimlane'], $colors);
+ $task = $this->format($task, $colors);
$results[] = array_values($task);
}
@@ -104,16 +103,14 @@ class TaskExport extends Base
*
* @access protected
* @param array $task
- * @param string $defaultSwimlaneName
* @param array $colors
* @return array
*/
- protected function format(array &$task, $defaultSwimlaneName, array $colors)
+ protected function format(array &$task, array $colors)
{
$task['is_active'] = $task['is_active'] == TaskModel::STATUS_OPEN ? e('Open') : e('Closed');
$task['color_id'] = $colors[$task['color_id']];
$task['score'] = $task['score'] ?: 0;
- $task['swimlane_name'] = $task['swimlane_name'] ?: $defaultSwimlaneName;
$task = $this->dateParser->format(
$task,