Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-13781

datepicker allows selection of dates outside of configured range

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.1
    • Fix Version/s: 4.4.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      to reproduce:
      1) use inline edit or full edit screen on an individual contact record
      2) in the birthdate field, use the left/right buttons to advance beyond the last date/year allowed (via configuration)
      3) in doing that, the year dropdown will "wraparound" to the earliest year configured.
      4) select a date in that "early" year

      instead of storing a date for the early year, it will store a date for a future year. for example, if 2013 is the last year and 1913 is the earliest, it will appear that you've selected Jan 5, 1913 (after it wraps around), but the date stored in the field will be Jan 5, 2014 (beyond the expected allowable range).

      there are two problems with this:
      1) the wraparound visual effect is unexpected and undesirable
      2) the date stored is different than what is visually expected, and beyond the configured range

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: