Minor - Plugins: Zoom - Add contact information when creating an event

BT#17288
pull/3433/head
Julio Montoya 6 years ago
parent dbf0a46135
commit c0a1965d13
  1. 6
      plugin/zoom/lib/API/BaseMeetingTrait.php
  2. 6
      plugin/zoom/lib/ZoomPlugin.php

@ -27,10 +27,4 @@ trait BaseMeetingTrait
/** @var string description */
public $agenda;
/** @var string */
public $contact_name;
/** @var string */
public $contact_email;
}

@ -1230,6 +1230,10 @@ class ZoomPlugin extends Plugin
$meeting->setMeetingInfoGet($meeting->getMeetingInfoGet()->create());
$meeting->getMeetingInfoGet()->settings->approval_type = $approvalType;
$currentUser = api_get_user_entity(api_get_user_id());
$meeting->getMeetingInfoGet()->settings->contact_email = $currentUser->getEmail();
$meeting->getMeetingInfoGet()->settings->contact_name = $currentUser->getFullname();
Database::getManager()->persist($meeting);
Database::getManager()->flush();
@ -1266,8 +1270,6 @@ class ZoomPlugin extends Plugin
) {
$meetingInfoGet = MeetingInfoGet::fromTopicAndType($topic, MeetingInfoGet::TYPE_SCHEDULED);
$meetingInfoGet->duration = $duration;
$meetingInfoGet->contact_email = $user->getEmail();
$meetingInfoGet->contact_name = $user->getFullname();
$meetingInfoGet->start_time = $startTime->format(DateTimeInterface::ISO8601);
$meetingInfoGet->agenda = $agenda;
$meetingInfoGet->password = $password;

Loading…
Cancel
Save