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

Cannot reset scheduled task to defaults

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-48841-master

      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)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Mar/15