summaryrefslogtreecommitdiff
path: root/app/php/dto/CalendarDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-16 23:41:41 +0100
committeremkael <emkael@tlen.pl>2016-03-16 23:41:41 +0100
commitb40eca92d8e5cfd561855a440550fecc86ca4bdc (patch)
tree102b1379e3b012ec0c28127e86034935ed15cfb5 /app/php/dto/CalendarDTO.php
parenta6cc84b7759d554896468b866019663732cc3df0 (diff)
* custom name in calendar DTO
Diffstat (limited to 'app/php/dto/CalendarDTO.php')
-rw-r--r--app/php/dto/CalendarDTO.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/php/dto/CalendarDTO.php b/app/php/dto/CalendarDTO.php
index a222cd6..57636f3 100644
--- a/app/php/dto/CalendarDTO.php
+++ b/app/php/dto/CalendarDTO.php
@@ -10,7 +10,7 @@ class CalendarDTO {
public function loadRecord(Calendar $calendarRecord) {
$this->ID = $calendarRecord->UID;
- $this->Name = $calendarRecord->Name;
+ $this->Name = $calendarRecord->CustomName ?: $calendarRecord->Name;
$this->Website = $calendarRecord->Website;
}