Unable to set the from year to anything before 1900

Created on 16 November 2023, 11 months ago
Updated 23 May 2024, 4 months ago

Problem/Motivation

The YearOnlyItem FieldType has 1900 hardcoded in the field setting form.

$options = array_combine(range(1900, date('Y') - 1), range(1900, date('Y') - 1));

Steps to reproduce

  1. Create a new year only field
  2. Try changing the from year value to anything before 1900

Proposed resolution

Update the FieldType field settings type to textfield to allow sitebuilders to specify a custom year range.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: duplicate

Version

9.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vetchneons

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024