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

Grade essays button appears when no essays to grade

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.2
    • Fix Version/s: FRONTEND
    • Component/s: Lesson
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      1. Create a new lesson activity with default settings and a name
      2. Go to the lesson activity
      3. Click on 'grade essay'

      An error is experienced:

      Could not find lesson pages
      
      More information about this error
      Debug info:
      Error code: cannotfindpages
      Stack trace:
      
          line 476 of /lib/setuplib.php: moodle_exception thrown
          line 2729 of /mod/lesson/locallib.php: call to print_error()
          line 1306 of /mod/lesson/locallib.php: call to lesson_page_type_manager->load_all_pages()
          line 256 of /mod/lesson/essay.php: call to lesson->load_all_pages()
      

      Expected result:

      1. The button should not be displayed if there is nothing to grade

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated: