Plugin: Zoom: Delete webinar even if API doesn't respond - refs BT#20827

pull/4786/head
Angel Fernando Quiroz Campos 2 years ago
parent 435a93b9de
commit 3f5bc960c9
  1. 21
      plugin/zoom/lib/ZoomPlugin.php

@ -515,22 +515,21 @@ class ZoomPlugin extends Plugin
public function deleteWebinar(Webinar $webinar, string $returnURL)
{
$em = Database::getManager();
try {
$webinar->getWebinarSchema()->delete();
$em->remove($webinar);
$em->flush();
Display::addFlash(
Display::return_message($this->get_lang('WebinarDeleted'), 'success')
);
api_location($returnURL);
} catch (Exception $exception) {
$this->handleException($exception);
}
$em = Database::getManager();
$em->remove($webinar);
$em->flush();
Display::addFlash(
Display::return_message($this->get_lang('WebinarDeleted'), 'success')
);
api_location($returnURL);
}
/**

Loading…
Cancel
Save