mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-14522 - new capability "receivemail" for better control who gets the email after
a response. New option site_after_submit to define the url of the continue-button after completing a feedback
This commit is contained in:
parent
d92cadd63e
commit
c184660d31
10 changed files with 103 additions and 35 deletions
|
@ -186,7 +186,7 @@
|
|||
feedback_delete_completedtmp($completedid);
|
||||
}else if($new_completed_id = feedback_save_tmp_values($feedbackcompletedtmp, false, $userid)) {
|
||||
$savereturn = 'saved';
|
||||
feedback_email_teachers_anonym($cm, $feedback, $course, $userid);
|
||||
feedback_send_email_anonym($cm, $feedback, $course, $userid);
|
||||
unset($SESSION->feedback->is_started);
|
||||
|
||||
}else {
|
||||
|
@ -241,17 +241,21 @@
|
|||
echo '</p>';
|
||||
}
|
||||
}
|
||||
if($courseid) {
|
||||
if($courseid == SITEID) {
|
||||
print_continue($CFG->wwwroot);
|
||||
}else {
|
||||
print_continue($CFG->wwwroot.'/course/view.php?id='.$courseid);
|
||||
}
|
||||
if($feedback->site_after_submit) {
|
||||
print_continue(feedback_encode_target_url($feedback->site_after_submit));
|
||||
}else {
|
||||
if($course->id == SITEID) {
|
||||
print_continue($CFG->wwwroot);
|
||||
} else {
|
||||
print_continue($CFG->wwwroot.'/course/view.php?id='.$course->id);
|
||||
if($courseid) {
|
||||
if($courseid == SITEID) {
|
||||
print_continue($CFG->wwwroot);
|
||||
}else {
|
||||
print_continue($CFG->wwwroot.'/course/view.php?id='.$courseid);
|
||||
}
|
||||
}else {
|
||||
if($course->id == SITEID) {
|
||||
print_continue($CFG->wwwroot);
|
||||
} else {
|
||||
print_continue($CFG->wwwroot.'/course/view.php?id='.$course->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue