diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-11-15 11:13:37 -0800 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-11-15 11:13:37 -0800 |
commit | e03f5d17f0a80d6140030275d37ac48ea3230c66 (patch) | |
tree | 0c44230d0cad59be3b73faaa1603bf312b21aa80 /app | |
parent | 95cdeed472d00cd1b2f53b4878afd7fbc39ea389 (diff) |
Use external url if the title is empty while importing a task
Diffstat (limited to 'app')
-rw-r--r-- | app/Import/TaskImport.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Import/TaskImport.php b/app/Import/TaskImport.php index 26b8fc6a..4f89962b 100644 --- a/app/Import/TaskImport.php +++ b/app/Import/TaskImport.php @@ -161,7 +161,7 @@ class TaskImport extends Base $dependencies = $provider->getDependencies(); $values = array( 'task_id' => $taskId, - 'title' => $link->getTitle(), + 'title' => $link->getTitle() ?: $link->getUrl(), 'url' => $link->getUrl(), 'link_type' => $provider->getType(), 'dependency' => key($dependencies), |