Index: temp_moodle_dev/moodle/mod/lesson/action/addendofbranch.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -r0a66ad1a19f63e2f1615d471b70f158862a4bcc3 --- temp_moodle_dev/moodle/mod/lesson/action/addendofbranch.php (.../addendofbranch.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/lesson/action/addendofbranch.php (.../addendofbranch.php) (revision 0a66ad1a19f63e2f1615d471b70f158862a4bcc3) @@ -61,9 +61,11 @@ } lesson_set_message(get_string('addedanendofbranch', 'lesson'), 'notifysuccess'); + //LAMS: variable we pass to let it know we have added a new Branch + $uploaded=1; } else { lesson_set_message(get_string('nobranchtablefound', 'lesson')); } - - redirect("$CFG->wwwroot/mod/lesson/edit.php?id=$cm->id"); + //LAMS: new variable $uploaded we pass, so in view.php we will be able to display the button "finished and back to LAMS" + redirect("$CFG->wwwroot/mod/lesson/edit.php?id=$cm->id&uploaded=$uploaded"); ?>