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

Passing invalid value to schedule a task result in invalid notification

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7, 2.7.3, 2.8.1
    • 2.7.4, 2.8.2
    • Administration
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-44393-master
    • Hide
      1. Goto Site administration / ►Server / ►Scheduled tasks
      2. Click on edit for any task, try all the schedule field combinations mentioned in https://docs.moodle.org/28/en/Scheduled_tasks
      3. Look at the unit test in this patch and try some of those combination and make sure the results are as expected.
      4. Try any other combination as suggested by the "help" text of the fields, that you think I might have missed.
      5. Run unit tests and makes sure they pass.
      Show
      Goto Site administration / ►Server / ►Scheduled tasks Click on edit for any task, try all the schedule field combinations mentioned in https://docs.moodle.org/28/en/Scheduled_tasks Look at the unit test in this patch and try some of those combination and make sure the results are as expected. Try any other combination as suggested by the "help" text of the fields, that you think I might have missed. Run unit tests and makes sure they pass.
    • Team B Sprint 1

    Description

      Steps to reproduce:

      1. Go to "Site administration -> Server -> Scheduled tasks"
      2. Click on edit icon next to "Award badges"
      3. Enter "/2" in minutes and save
      4. you will see "/2" gives Notice: Undefined offset: -1 in /home/rajesht/moodles/im/moodle/lib/classes/task/scheduled_task.php on line 207

      Attachments

        Issue Links

          Activity

            People

              ankit_frenz Ankit Agarwal
              rajeshtaneja Rajesh Taneja
              Frédéric Massart Frédéric Massart
              Dan Poltawski Dan Poltawski
              Simey Lameze Simey Lameze
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Jan/15