Skip to content
This repository was archived by the owner on Apr 5, 2018. It is now read-only.

Commit e90e55f

Browse files
author
Bob Olde Hampsink
committed
Show "no description" when there's no description
1 parent a240eaa commit e90e55f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

models/TaskManagerModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function defineAttributes()
4343
*/
4444
public function getTitle()
4545
{
46-
return $this->description;
46+
return !empty($this->description) ? $this->description : Craft::t('No description');
4747
}
4848

4949
/**

translations/nl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@
2727
'Task(s) deleted' => 'Taken verwijderd.',
2828
'Error' => 'Fout',
2929
'Running' => 'Lopend',
30+
'No description' => 'Geen omschrijving',
3031
);

0 commit comments

Comments
 (0)