commit 43386eb9f26b465ef242d1ea9445d03fc8ec8252
Author: Devin Zuczek <dzuczek@dlc-solutions.com>
Date:   Fri Jun 26 16:15:13 2015 -0400

    Mantis #24741: fix a really stupid issue that only happens when using graded course object access

diff --git a/course.module b/course.module
index b641dd5..23d06b5 100644
--- a/course.module
+++ b/course.module
@@ -558,17 +558,7 @@ function course_object_options_form_submit(&$form, &$form_state) {
  * Menu loader for course objects, in the context of a course.
  */
 function course_object_load($coid) {
-  global $user;
-  $nid = arg(0) == 'node' && is_numeric(arg(1)) ? arg(1) : 0;
-  // Stored course object.
-  $courseObject = course_get_course_object_by_id($coid, $user);
-
-  if ($courseObject && $nid) {
-    // If we're loading this from a menu loader, set the course.
-    $courseObject->setCourse($nid);
-  }
-
-  return $courseObject;
+  return entity_load_single('course_object', $coid);
 }
 
 /**
