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

Add mform validation for invalid url when importing a calendar

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-71789-master
    • Hide
      1. Log in as admin and go to Calendar > Manage subscriptions.
      2. On the Import calendar form, add a calendar name and click Add.
      3. Make sure the Calendar URL field displays "The given iCal URL is invalid." validation.
      4. On the Calendar URL field, add any text and click Add
      5. Make sure the Calendar URL field displays "The given iCal URL is invalid." validation.
      6. Now, add a valid URL to the Calendar URL field and click Add:

        https://calendar.google.com/calendar/ical/moodle.com_gverd91agb5htmi8ervnn6q2j0%40group.calendar.google.com/public/basic.ics
        

      7. Make sure the calendar has been added.
      Show
      Log in as admin and go to Calendar > Manage subscriptions. On the Import calendar form, add a calendar name and click Add . Make sure the Calendar URL field displays "The given iCal URL is invalid." validation. On the Calendar URL field, add any text and click Add Make sure the Calendar URL field displays "The given iCal URL is invalid." validation. Now, add a valid URL to the Calendar URL field and click Add : https://calendar.google.com/calendar/ical/moodle.com_gverd91agb5htmi8ervnn6q2j0%40group.calendar.google.com/public/basic.ics Make sure the calendar has been added.
    • 1
    • HQ Team International Sprint 3

    Description

      Current behaviour: When trying to import a calendar with an invalid url an error message is displayed.

      Proposed change: Add a mform validation to prevent the error message from being displayed. Surely this can be backported to stables.

      Attachments

        Issue Links

          Activity

            People

              lameze Simey Lameze
              lameze Simey Lameze
              Dongsheng Cai Dongsheng Cai
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Gladys Basiana Gladys Basiana
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Jul/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 36 minutes
                  2h 36m