No internal link creation on subtask to task conversion if language is not English

This commit is contained in:
Frédéric Guillot 2022-09-28 20:05:20 -07:00 committed by Frédéric Guillot
parent 55a3b242bf
commit 11edef20d2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class SubtaskTaskConversionModel extends Base
));
if ($task_id !== false) {
$link = $this->linkModel->getByLabel(t('is a child of'));
$link = $this->linkModel->getByLabel('is a child of');
if ($link) {
$this->taskLinkModel->create($task_id, $subtask['task_id'], $link['id']);
}