Course Progress: Fix CSV import -refs BT#19180

pull/3990/head
NicoDucou 4 years ago
parent 62a9e49f43
commit aaceb68cb4
  1. 16
      main/course_progress/thematic_controller.php

@ -132,12 +132,12 @@ class ThematicController
continue; continue;
} }
switch ($item[0]) { switch ($item['type']) {
case 'title': case 'title':
$thematic->set_thematic_attributes( $thematic->set_thematic_attributes(
null, null,
$item[1], $item['data1'],
$item[2], $item['data2'],
api_get_session_id() api_get_session_id()
); );
$current_thematic = $thematic->thematic_save(); $current_thematic = $thematic->thematic_save();
@ -146,8 +146,8 @@ class ThematicController
case 'plan': case 'plan':
$thematic->set_thematic_plan_attributes( $thematic->set_thematic_plan_attributes(
$current_thematic, $current_thematic,
$item[1], $item['data1'],
$item[2], $item['data2'],
$description_type $description_type
); );
$thematic->thematic_plan_save(); $thematic->thematic_plan_save();
@ -158,9 +158,9 @@ class ThematicController
null, null,
$current_thematic, $current_thematic,
0, 0,
$item[3], $item['data3'],
$item[1], $item['data1'],
$item[2] $item['data2']
); );
$thematic->thematic_advance_save(); $thematic->thematic_advance_save();
break; break;

Loading…
Cancel
Save