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

Cannot reset scheduled task to defaults

    XMLWordPrintable

Details

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-48841-master
    • Hide
      1. Login as admin
      2. Navigate to "Scheduled tasks" in "Site administration > Server"
      3. Click "edit" icon near any of scheduled tasks
      4. Tick "Reset task schedule to defaults", which should disable input fields in the form, and click "Save changes"
      5. "Scheduled tasks" page should load and contain message "Changes saved"
      6. Repeat step 3
      7. Make some input fields empty and click "Save changes"
      8. The page should state that values in the empty fields are invalid.
      Show
      Login as admin Navigate to "Scheduled tasks" in "Site administration > Server" Click "edit" icon near any of scheduled tasks Tick "Reset task schedule to defaults", which should disable input fields in the form, and click "Save changes" "Scheduled tasks" page should load and contain message "Changes saved" Repeat step 3 Make some input fields empty and click "Save changes" The page should state that values in the empty fields are invalid.

    Description

      Since the upgrade to Moodle 2.8 I cannot reset scheduled tasks.
      I go to edit the task, check the "reset task schedule to defaults" option, the boxes all grey out and then when I submit it returns me to the form with a "required" error above each of the greyed out boxes.

      Despite the fields actually being present in the data array (at least at validation() point):
      Array ( [minute] => 16 [hour] => 4 [day] => * [month] => * [dayofweek] => * [disabled] => 0 [resettodefaults] => 1 [task] => tool_langimport\task\update_langpacks_task [action] => edit [submitbutton] => Save changes [sesskey] => blah)

      Attachments

        Issue Links

          Activity

            People

              kabalin Ruslan Kabalin
              skylarkelty Skylar Kelty
              Dan Poltawski Dan Poltawski
              David Monllaó David Monllaó
              Mark Nelson Mark Nelson
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Mar/15