Save and redirect to Thematic Control when you save in the Edit Thematic Advance form - refs #7253

1.9.x
Angel Fernando Quiroz Campos 10 years ago
parent 3c091029d2
commit b9bf6d1044
  1. 4
      main/course_progress/thematic.php
  2. 6
      main/course_progress/thematic_controller.php

@ -53,6 +53,10 @@ if ($action == 'thematic_list') {
$table->display();
} elseif ($action == 'thematic_details') {
if (isset($_GET['thematic_plan_save_message']) && $_GET['thematic_plan_save_message'] == 'ok') {
Display::display_confirmation_message(get_lang('ThematicSectionHasBeenCreatedSuccessfull'));
}
if (isset($last_id) && $last_id) {
$link_to_thematic_plan = '<a href="index.php?'.api_get_cidreq().'&action=thematic_plan_list&thematic_id='.$last_id.'">'.Display::return_icon('lesson_plan.png', get_lang('ThematicPlan'), array('style'=>'vertical-align:middle;float:none;'),ICON_SIZE_SMALL).'</a>';

@ -286,6 +286,12 @@ class ThematicController
}
unset($_SESSION['thematic_plan_token']);
$data['message'] = 'ok';
$saveRedirect = api_get_path(WEB_PATH) . 'main/course_progress/index.php?';
$saveRedirect.= api_get_cidreq() . '&';
$saveRedirect.= 'thematic_plan_save_message=ok';
header("Location: $saveRedirect");
}
$data['action'] = 'thematic_plan_list';
}

Loading…
Cancel
Save