summaryrefslogtreecommitdiff
path: root/app/php
diff options
context:
space:
mode:
Diffstat (limited to 'app/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;
}