Update visibility in update see BT#12799

pull/2487/head
jmontoyaa 8 years ago
parent 28202b5f71
commit f873514b1c
  1. 9
      main/cron/import_csv.php

@ -213,7 +213,10 @@ class ImportCsv
$file = $fileInfo['file'];
echo 'File: '.$file.PHP_EOL;
echo 'Method : '.$method.PHP_EOL;
echo PHP_EOL;
$this->logger->addInfo("Reading file: $file");
$this->logger->addInfo("Loading method $method ");
if ($method == 'importSessions') {
$this->$method(
$file,
@ -253,7 +256,10 @@ class ImportCsv
$file = $fileInfo['file'];
echo 'Static file: '.$file.PHP_EOL;
echo 'Method : '.$method.PHP_EOL;
echo PHP_EOL;
$this->logger->addInfo("Reading static file: $file");
$this->logger->addInfo("Loading method $method ");
$this->$method(
$file,
true,
@ -1358,7 +1364,8 @@ class ImportCsv
// Update
$params = array(
'title' => $row['title'],
'category_code' => $row['course_category']
'category_code' => $row['course_category'],
'visibility' => $row['visibility']
);
$result = CourseManager::update_attributes(

Loading…
Cancel
Save