|
|
|
@ -884,10 +884,6 @@ class ImportCsv |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->logger->addInfo( |
|
|
|
|
"Ready to insert events" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$agenda = new Agenda('course'); |
|
|
|
|
|
|
|
|
|
$extraFieldValue = new ExtraFieldValue('calendar_event'); |
|
|
|
@ -907,6 +903,10 @@ class ImportCsv |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->logger->addInfo( |
|
|
|
|
"Ready to insert events" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$batchSize = $this->batchSize; |
|
|
|
|
$counter = 1; |
|
|
|
|
$em = Database::getManager(); |
|
|
|
@ -995,6 +995,10 @@ class ImportCsv |
|
|
|
|
$notificationSent = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->logger->addInfo( |
|
|
|
|
"Send Mail conditions: ".(int) ($notificationSent && $sendMail) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Send announcement to users |
|
|
|
|
if ($sendMail == false && $notificationSent) { |
|
|
|
|
$start = api_get_local_time( |
|
|
|
|