Permalink
Browse files

MDL-26075 Sending Message through Feedback Component throws an error

  • Loading branch information...
1 parent de58499 commit 74e3f2c67e9fb001ee0c0bd553947afed2b607d4 Andreas Grabs committed May 12, 2011
Showing with 6 additions and 3 deletions.
  1. +3 −0 mod/feedback/db/messages.php
  2. +2 −2 mod/feedback/show_nonrespondents.php
  3. +1 −1 mod/feedback/version.php
@@ -27,6 +27,9 @@
/// Submitting a feedback
'submission' => array (
+ ),
+/// Message to nonrespondents
+ 'message' => array (
)
);
@@ -75,8 +75,8 @@
foreach ($messageuser as $userid) {
$senduser = $DB->get_record('user', array('id'=>$userid));
$eventdata = new stdClass();
- $eventdata->name = 'feedback';
- $eventdata->component = 'mod';
+ $eventdata->name = 'message';
+ $eventdata->component = 'mod_feedback';
$eventdata->userfrom = $USER;
$eventdata->userto = $senduser;
$eventdata->subject = $subject;
@@ -9,7 +9,7 @@
*/
- $module->version = 2010112302; // The current module version (Date: YYYYMMDDXX)
+ $module->version = 2010112303; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010080300; // Requires this Moodle version
$feedback_version_intern = 1; //this version is used for restore older backups
$module->cron = 0; // Period for cron to check this module (secs)

0 comments on commit 74e3f2c

Please sign in to comment.