diff options
author | emkael <emkael@tlen.pl> | 2016-03-16 23:41:41 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-16 23:41:41 +0100 |
commit | b40eca92d8e5cfd561855a440550fecc86ca4bdc (patch) | |
tree | 102b1379e3b012ec0c28127e86034935ed15cfb5 | |
parent | a6cc84b7759d554896468b866019663732cc3df0 (diff) |
* custom name in calendar DTO
-rw-r--r-- | app/php/dto/CalendarDTO.php | 2 |
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; } |