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

Date picker does not consider start and stop year

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Place the attached 'test.php' file in your site's root
      2. Visit YOURMOODLE/test.php

      Date element:

      1. Click the calendar icon for the first element - the non-limited date element
      2. Verify you can navigate into the year 2021 using the right arrow next to the month
      3. Verify you can navigate into the year 2018 using the left arrow next to the month
      4. Click the calendar icon for the second element - the limited date element
      5. Verify you CANNOT navigate into the year 2021 using the right arrow next to the month.
      6. Verify The highest date you are able to select is 31 Dec 2020
      7. Verify you CANNOT navigate into the year 2018 using the left arrow next to the month.
      8. Verify The lowest date you are able to select is 01 Jan 2019

      Date time element

      1. Click the calendar icon for the third element - the non-limited date time element
      2. Verify you can navigate into the year 2021 using the right arrow next to the month
      3. Verify you can navigate into the year 2018 using the left arrow next to the month
      4. Click the calendar icon for the fourth element = the limited datetime element
      5. Verify you CANNOT navigate into the year 2021 using the right arrow next to the month.
      6. Verify The highest date you are able to select is 31 Dec 2020
      7. Verify you CANNOT navigate into the year 2018 using the left arrow next to the month.
      8. Verify The lowest date you are able to select is 01 Jan 2019
      Show
      Setup Place the attached 'test.php' file in your site's root Visit YOURMOODLE/test.php Date element: Click the calendar icon for the first element - the non-limited date element Verify you can navigate into the year 2021 using the right arrow next to the month Verify you can navigate into the year 2018 using the left arrow next to the month Click the calendar icon for the second element - the limited date element Verify you CANNOT navigate into the year 2021 using the right arrow next to the month. Verify The highest date you are able to select is 31 Dec 2020 Verify you CANNOT navigate into the year 2018 using the left arrow next to the month. Verify The lowest date you are able to select is 01 Jan 2019 Date time element Click the calendar icon for the third element - the non-limited date time element Verify you can navigate into the year 2021 using the right arrow next to the month Verify you can navigate into the year 2018 using the left arrow next to the month Click the calendar icon for the fourth element = the limited datetime element Verify you CANNOT navigate into the year 2021 using the right arrow next to the month. Verify The highest date you are able to select is 31 Dec 2020 Verify you CANNOT navigate into the year 2018 using the left arrow next to the month. Verify The lowest date you are able to select is 01 Jan 2019
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.8 Branch:
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-69505-310
    • Pull Master Branch:
      MDL-69505-master

      Description

      In Moodle Forms you can add the element 'date_time_selector' and attach a start- and stopyear. In the drop down boxes only these years are available, but when you choose the date from the pop up date picker you can choose dates that are before or after the selected years. If you choose one of these dates, the drop down box of the year will be empty but when saved it takes the last available year. Example:

      • date_time_selector with startyear 2019 and stopyear 2020
      • pick any date after 2020 from the pop up date picker e.g. 1.05.2023
      • the drop down of the year will be empty
      • save your form
      • the saved date will be 1.05.2020

      Could you make the pop up date picker also consider the start and stopyear?

        Attachments

        1. MDL-69505.jpg
          MDL-69505.jpg
          69 kB
        2. MDL-69505 (2).jpg
          MDL-69505 (2).jpg
          54 kB
        3. test.php
          1 kB

          Activity

            People

            Assignee:
            jaked Jake Dallimore
            Reporter:
            sgruenberger Stefanie Grünberger
            Peer reviewer:
            Mihail Geshoski
            Integrator:
            Andrew Nicols
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Sep/20

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 25 minutes
                3h 25m