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

Loading…
Cancel
Save