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

When searching for a course that does not exist a non-sensical string is displayed.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Search for a course from the course management page that does not exist, eg. "NOWAYTHISCOURSEEXISTSIFITDOESWOWYOUCRAZY".

      On master

      1. Ensure you get the meaningful message "No courses were found with the words '<whateveryousearched>'".

      On 2.7 and 2.6

      1. Ensure you get the meaningful message "No courses".
      Show
      Search for a course from the course management page that does not exist, eg. "NOWAYTHISCOURSEEXISTSIFITDOESWOWYOUCRAZY". On master Ensure you get the meaningful message "No courses were found with the words '<whateveryousearched>'". On 2.7 and 2.6 Ensure you get the meaningful message "No courses".
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46902_master
    • Story Points:
      5

      Description

      1. Search for a course from the course management page that does not exist, eg. "NOWAYTHISCOURSEEXISTSIFITDOESWOWYOUCRAZY".
      2. You will get the strange string "Showing courses -19 to 0 of 0 courses" due to Moodle performing arithmetic with the value of 0 (($page * $perpage) + 1).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Sep/14