Add changes from 1.9.x

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 7d9481e703
commit 9b0ad452d2
  1. 6
      main/cron/import_csv.php

@ -872,6 +872,7 @@ class ImportCsv
$this->extraFieldIdNameList['calendar_event'] => $row['external_calendar_itemID'], $this->extraFieldIdNameList['calendar_event'] => $row['external_calendar_itemID'],
); );
} }
$errorFound = false;
} }
if (empty($eventsToCreate)) { if (empty($eventsToCreate)) {
@ -2006,6 +2007,11 @@ class ImportCsv
Database::query($sql); Database::query($sql);
echo $sql.PHP_EOL; echo $sql.PHP_EOL;
} }
$table = Database::get_course_table(TABLE_ITEM_PROPERTY);
$sql = "DELETE FROM $table WHERE tool = 'calendar_event'";
Database::query($sql);
echo $sql.PHP_EOL;
} }
/** /**

Loading…
Cancel
Save