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

Unfriendly error when Grading essays of empty lesson

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6, 2.7
    • Fix Version/s: 2.5.6, 2.6.3
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      1. Create or go to a course.
      2. Create a new lesson.
      3. Go to the "Grade essays" tab.
      4. Here you will now see a user friendly error with lesson tabs (Preview / Edit / Reports / Grade essays) still visible.

      Show
      1. Create or go to a course. 2. Create a new lesson. 3. Go to the "Grade essays" tab. 4. Here you will now see a user friendly error with lesson tabs (Preview / Edit / Reports / Grade essays) still visible.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      When trying to grade essays of an empty lesson, the user sees a non-friendly error. A user-friendly error is already included in Moodle's code, but it get's hijacked by a print_error statement, if DB query returns empty.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14