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

Date picker does not consider start and stop year

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-69505-master
    • 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

      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?

        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

            jaked Jake Dallimore
            sgruenberger Stefanie Grünberger
            Mihail Geshoski Mihail Geshoski
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.