Improve pull-request
This commit is contained in:
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
'Help on Bitbucket webhooks' => 'Hilfe für Bitbucket webhooks',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -685,4 +685,7 @@ return array(
|
||||
'Help on Bitbucket webhooks' => 'Aide sur les webhooks Bitbucket',
|
||||
'Start' => 'Début',
|
||||
'End' => 'Fin',
|
||||
'Task age in days' => 'Age de la tâche en jours',
|
||||
'Days in this column' => 'Jours dans cette colonne',
|
||||
'%dd' => '%dj',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
'Help on Bitbucket webhooks' => 'Ajuda sobre os webhooks Bitbucket',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -683,4 +683,7 @@ return array(
|
||||
// 'Help on Bitbucket webhooks' => '',
|
||||
// 'Start' => '',
|
||||
// 'End' => '',
|
||||
// 'Task age in days' => '',
|
||||
// 'Days in this column' => '',
|
||||
// '%dd' => '',
|
||||
);
|
||||
|
||||
@@ -30,10 +30,11 @@ class TaskPosition extends Base
|
||||
$result = $this->calculateAndSave($project_id, $task_id, $column_id, $position, $swimlane_id);
|
||||
|
||||
if ($result) {
|
||||
|
||||
if ($original_task['column_id'] != $column_id) {
|
||||
$this->db->table(Task::TABLE)->eq('id', $task_id)->update(array('date_moved' => time(),
|
||||
));
|
||||
$this->db->table(Task::TABLE)->eq('id', $task_id)->update(array('date_moved' => time()));
|
||||
}
|
||||
|
||||
if ($original_task['swimlane_id'] != $swimlane_id) {
|
||||
$this->calculateAndSave($project_id, 0, $column_id, 1, $original_task['swimlane_id']);
|
||||
}
|
||||
|
||||
@@ -34,8 +34,10 @@ function version_45($pdo)
|
||||
WHERE event_name IN ('task.create', 'task.move.column')
|
||||
GROUP BY task_id
|
||||
) src
|
||||
)
|
||||
");
|
||||
)");
|
||||
|
||||
// If there is no activities for some tasks use the date_creation
|
||||
$pdo->exec("UPDATE tasks SET date_moved = date_creation WHERE date_moved IS NULL OR date_moved = 0");
|
||||
}
|
||||
|
||||
function version_44($pdo)
|
||||
|
||||
@@ -34,13 +34,15 @@ function version_26($pdo)
|
||||
WHERE event_name IN ('task.create', 'task.move.column')
|
||||
GROUP BY task_id
|
||||
) src
|
||||
)
|
||||
");
|
||||
)");
|
||||
|
||||
// If there is no activities for some tasks use the date_creation
|
||||
$pdo->exec("UPDATE tasks SET date_moved = date_creation WHERE date_moved IS NULL OR date_moved = 0");
|
||||
}
|
||||
|
||||
function version_25($pdo)
|
||||
{
|
||||
$pdo->exec("ALTER TABLE users ADD COLUMN disable_login_form BOOLEAN DEFAULT '1'");
|
||||
$pdo->exec("ALTER TABLE users ADD COLUMN disable_login_form BOOLEAN DEFAULT '0'");
|
||||
}
|
||||
|
||||
function version_24($pdo)
|
||||
|
||||
@@ -34,8 +34,10 @@ function version_44($pdo)
|
||||
WHERE event_name IN ('task.create', 'task.move.column')
|
||||
GROUP BY task_id
|
||||
) src
|
||||
)
|
||||
");
|
||||
)");
|
||||
|
||||
// If there is no activities for some tasks use the date_creation
|
||||
$pdo->exec("UPDATE tasks SET date_moved = date_creation WHERE date_moved IS NULL OR date_moved = 0");
|
||||
}
|
||||
|
||||
function version_43($pdo)
|
||||
|
||||
@@ -69,8 +69,8 @@
|
||||
) ?>
|
||||
</span>
|
||||
|
||||
<span title="<?= t('Task age in days')?>" class="task-days-age"><?= floor(time()/86400) - floor($task['date_creation']/86400)?>d</span>
|
||||
<span title="<?= t('Days in this column')?>" class="task-days-incolumn"><?= floor(time()/86400) - floor($task['date_moved']/86400)?>d</span>
|
||||
<span title="<?= t('Task age in days')?>" class="task-days-age"><?= t('%dd', floor(time()/86400) - floor($task['date_creation']/86400)) ?></span>
|
||||
<span title="<?= t('Days in this column')?>" class="task-days-incolumn"><?= t('%dd', floor(time()/86400) - floor($task['date_moved']/86400)) ?></span>
|
||||
|
||||
<?php if ($task['score']): ?>
|
||||
<span class="task-score"><?= $this->e($task['score']) ?></span>
|
||||
|
||||
Reference in New Issue
Block a user