summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-11-15 11:13:37 -0800
committerFrederic Guillot <fred@kanboard.net>2017-11-15 11:13:37 -0800
commite03f5d17f0a80d6140030275d37ac48ea3230c66 (patch)
tree0c44230d0cad59be3b73faaa1603bf312b21aa80 /app
parent95cdeed472d00cd1b2f53b4878afd7fbc39ea389 (diff)
Use external url if the title is empty while importing a task
Diffstat (limited to 'app')
-rw-r--r--app/Import/TaskImport.php2
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),