Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48833

/lib/messagelib.php::message_send() accepts any type for param $eventdata but calls \core\message\manager::send_message() with same param but that method requires $eventdata type be \stdClass

XMLWordPrintable

      /lib/messagelib.php::message_send() accepts any type for param $eventdata but calls \core\message\manager::send_message() with same param but that method requires $eventdata type be \stdClass.
      Which can cause an exception like:

      Exception encountered in ...: Argument 1 passed to core\message\manager::send_message() must be an instance of stdClass, instance of notification given, ...
      

            lameze Simey Lameze
            brentboghosian Brent Boghosian
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.