Appointment location could be empty, use the company name instead.
This commit is contained in:
parent
c99694b520
commit
0b50814cf4
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ class Google_Sync {
|
||||||
$event = new Google_Event();
|
$event = new Google_Event();
|
||||||
$event->setSummary(($service != NULL) ? $service['name'] : 'Unavailable');
|
$event->setSummary(($service != NULL) ? $service['name'] : 'Unavailable');
|
||||||
$event->setDescription($appointment['notes']);
|
$event->setDescription($appointment['notes']);
|
||||||
$event->setLocation($appointment['location']);
|
$event->setLocation(isset($appointment['location']) ? $appointment['location'] : $company_settings['company_name']);
|
||||||
|
|
||||||
$start = new Google_EventDateTime();
|
$start = new Google_EventDateTime();
|
||||||
$start->setDateTime(date3339(strtotime($appointment['start_datetime'])));
|
$start->setDateTime(date3339(strtotime($appointment['start_datetime'])));
|
||||||
|
@ -201,7 +201,7 @@ class Google_Sync {
|
||||||
|
|
||||||
$event->setSummary($service['name']);
|
$event->setSummary($service['name']);
|
||||||
$event->setDescription($appointment['notes']);
|
$event->setDescription($appointment['notes']);
|
||||||
$event->setLocation($appointment['location']);
|
$event->setLocation(isset($appointment['location']) ? $appointment['location'] : $company_settings['company_name']);
|
||||||
|
|
||||||
$start = new Google_EventDateTime();
|
$start = new Google_EventDateTime();
|
||||||
$start->setDateTime(date3339(strtotime($appointment['start_datetime'])));
|
$start->setDateTime(date3339(strtotime($appointment['start_datetime'])));
|
||||||
|
|
Loading…
Reference in a new issue