mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
Merge branch 'MDL-51410_m32v2' of https://github.com/sbourget/moodle
This commit is contained in:
commit
9e91ff52c9
mod/survey
@ -198,6 +198,7 @@ $string['downloadinfo'] = 'You can download the complete raw data for this surve
|
||||
$string['downloadresults'] = 'Download results';
|
||||
$string['downloadtext'] = 'Download data as a plain text file';
|
||||
$string['editingasurvey'] = 'Editing a survey';
|
||||
$string['errorunabletosavenotes'] = 'An error occurred while saving your notes.';
|
||||
$string['eventreportdownloaded'] = 'Survey report downloaded';
|
||||
$string['eventreportviewed'] = 'Survey report viewed';
|
||||
$string['eventresponsesubmitted'] = 'Survey response submitted';
|
||||
|
@ -387,15 +387,15 @@
|
||||
if ($notes != '' and confirm_sesskey()) {
|
||||
if (survey_get_analysis($survey->id, $user->id)) {
|
||||
if (! survey_update_analysis($survey->id, $user->id, $notes)) {
|
||||
echo $OUTPUT->notification("An error occurred while saving your notes. Sorry.");
|
||||
echo $OUTPUT->notification(get_string("errorunabletosavenotes", "survey"), "notifyproblem");
|
||||
} else {
|
||||
echo $OUTPUT->notification(get_string("savednotes", "survey"));
|
||||
echo $OUTPUT->notification(get_string("savednotes", "survey"), "notifysuccess");
|
||||
}
|
||||
} else {
|
||||
if (! survey_add_analysis($survey->id, $user->id, $notes)) {
|
||||
echo $OUTPUT->notification("An error occurred while saving your notes. Sorry.");
|
||||
echo $OUTPUT->notification(get_string("errorunabletosavenotes", "survey"), "notifyproblem");
|
||||
} else {
|
||||
echo $OUTPUT->notification(get_string("savednotes", "survey"));
|
||||
echo $OUTPUT->notification(get_string("savednotes", "survey"), "notifysuccess");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user