Add [DUPLICATE] prefix to duplicated tasks title

This commit is contained in:
Frederic Guillot
2017-04-30 14:39:51 -04:00
parent 11d1da2d79
commit f22cc29cd5
29 changed files with 37 additions and 3 deletions

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
'%d subtasks' => '%d Teilaufgaben',
'%d subtask' => '%d Teilaufgabe',
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Das Bewegen einer Aufgabe zwischen diesen Spalten ist nur für Aufgaben zulässig, die dem aktuellen Benutzer zugewiesen sind',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
'%d subtasks' => '%d sous-tâches',
'%d subtask' => '%d sous-tâche',
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Seulement le déplacement des tâches entre ces colonnes est autorisé pour l\'utilisateur courant',
'[DUPLICATE]' => '[COPIE]',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1245,7 +1245,7 @@ return array(
'Click here to join your team' => 'Válassza ezt, ha csatlakozni akar a csapatjához',
'Invite people' => 'Emberek meghívása',
'Emails' => 'E-mailek',
'Enter one email address by line.' => 'Soronként egy e-mailt adjon meg',
'Enter one email address by line.' => 'Soronként egy e-mailt adjon meg',
'Add these people to this project' => 'Ezen személyek projekthez adása',
'Add this person to this project' => 'Ezen személy projekthez adása',
'Sign-up' => 'Feliratkozás',
@@ -1331,4 +1331,5 @@ return array(
'%d subtasks' => '%d alfeladat',
'%d subtask' => '%d alfeladat',
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Az aktuális felhasználóhoz rendelt feladatok csak az engedélyezett oszlopok között mozgathatóak',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
'%d subtasks' => '%d subtarefas',
'%d subtask' => '%d subtarefa',
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Apenas é permitido mover a tarefa entre essas colunas para tarefas atribuídas ao utilizador atual',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
'%d subtasks' => '%d подзадач',
'%d subtask' => '%d подзадача',
'Only moving task between those columns is permitted for tasks assigned to the current user' => 'Текущий пользователь может перемещать назначенные ему задачи только между этими колонками',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -1331,4 +1331,5 @@ return array(
// '%d subtasks' => '',
// '%d subtask' => '',
// 'Only moving task between those columns is permitted for tasks assigned to the current user' => '',
// '[DUPLICATE]' => '',
);

View File

@@ -47,7 +47,10 @@ class TaskDuplicationModel extends Base
*/
public function duplicate($task_id)
{
$new_task_id = $this->save($task_id, $this->copyFields($task_id));
$values = $this->copyFields($task_id);
$values['title'] = t('[DUPLICATE]').' '.$values['title'];
$new_task_id = $this->save($task_id, $values);
if ($new_task_id !== false) {
$this->tagDuplicationModel->duplicateTaskTags($task_id, $new_task_id);