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

Alternate name warnings in Recent Activity block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Blocks, Libraries
    • Labels:
    • Testing Instructions:
      Hide
      1. Please make sure you can see the warnings without the patch before testing with patch.
      2. You need a course with atleast one assign activity with a recent submission.
      3. Add recent activity block to the course.
      4. Set fullnamedisplay setting to 'firstname, lastnamephonetic'.
      5. Login as a user who does not have permissions of 'moodle/site:viewfullnames'
      6. Make sure there are no warnings in the recent activity block
      7. Run phpunit mod_assign_lib_testcase and make sure it passes without any debugging notices.
      Show
      Please make sure you can see the warnings without the patch before testing with patch. You need a course with atleast one assign activity with a recent submission. Add recent activity block to the course. Set fullnamedisplay setting to 'firstname, lastnamephonetic'. Login as a user who does not have permissions of 'moodle/site:viewfullnames' Make sure there are no warnings in the recent activity block Run phpunit mod_assign_lib_testcase and make sure it passes without any debugging notices.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-40962-master
    • Story Points:
      5
    • Sprint:
      BACKEND Sprint 5

      Description

      When an assignment has been submitted, the recent activity displays this:

      You need to update your sql to include additional name fields in the user object.
      line 3657 of /lib/moodlelib.php: call to debugging()
      line 2222 of /lib/weblib.php: call to fullname()
      line 587 of /mod/assign/lib.php: call to print_recent_activity_note()
      line ? of unknownfile: call to assign_print_recent_activity()
      line 8362 of /lib/moodlelib.php: call to call_user_func_array()
      line 202 of /blocks/recent_activity/block_recent_activity.php: call to component_callback()
      line 74 of /blocks/recent_activity/block_recent_activity.php: call to block_recent_activity->get_modules_recent_activity()
      line 296 of /blocks/moodleblock.class.php: call to block_recent_activity->get_content()
      line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 7 of /theme/base/layout/general.php: call to block_manager->region_has_content()
      line 847 of /lib/outputrenderers.php: call to include()
      line 777 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 242 of /course/view.php: call to core_renderer->header()
      You need to update your sql to include additional name fields in the user object.
      line 3657 of /lib/moodlelib.php: call to debugging()
      line 2222 of /lib/weblib.php: call to fullname()
      line 587 of /mod/assign/lib.php: call to print_recent_activity_note()
      line ? of unknownfile: call to assign_print_recent_activity()
      line 8362 of /lib/moodlelib.php: call to call_user_func_array()
      line 202 of /blocks/recent_activity/block_recent_activity.php: call to component_callback()
      line 74 of /blocks/recent_activity/block_recent_activity.php: call to block_recent_activity->get_modules_recent_activity()
      line 296 of /blocks/moodleblock.class.php: call to block_recent_activity->get_content()
      line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 7 of /theme/base/layout/general.php: call to block_manager->region_has_content()
      line 847 of /lib/outputrenderers.php: call to include()
      line 777 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 242 of /course/view.php: call to core_renderer->header()
      You need to update your sql to include additional name fields in the user object.
      line 3657 of /lib/moodlelib.php: call to debugging()
      line 2222 of /lib/weblib.php: call to fullname()
      line 587 of /mod/assign/lib.php: call to print_recent_activity_note()
      line ? of unknownfile: call to assign_print_recent_activity()
      line 8362 of /lib/moodlelib.php: call to call_user_func_array()
      line 202 of /blocks/recent_activity/block_recent_activity.php: call to component_callback()
      line 74 of /blocks/recent_activity/block_recent_activity.php: call to block_recent_activity->get_modules_recent_activity()
      line 296 of /blocks/moodleblock.class.php: call to block_recent_activity->get_content()
      line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 7 of /theme/base/layout/general.php: call to block_manager->region_has_content()
      line 847 of /lib/outputrenderers.php: call to include()
      line 777 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 242 of /course/view.php: call to core_renderer->header()
      You need to update your sql to include additional name fields in the user object.
      line 3657 of /lib/moodlelib.php: call to debugging()
      line 2222 of /lib/weblib.php: call to fullname()
      line 587 of /mod/assign/lib.php: call to print_recent_activity_note()
      line ? of unknownfile: call to assign_print_recent_activity()
      line 8362 of /lib/moodlelib.php: call to call_user_func_array()
      line 202 of /blocks/recent_activity/block_recent_activity.php: call to component_callback()
      line 74 of /blocks/recent_activity/block_recent_activity.php: call to block_recent_activity->get_modules_recent_activity()
      line 296 of /blocks/moodleblock.class.php: call to block_recent_activity->get_content()
      line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 7 of /theme/base/layout/general.php: call to block_manager->region_has_content()
      line 847 of /lib/outputrenderers.php: call to include()
      line 777 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 242 of /course/view.php: call to core_renderer->header()
      

      Not sure how to replicate this, but I followed the instructions of MDL-40897 and that came up while logged in as the student.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13