No Code Attached Yet bug
avatar shane-clickingmad
shane-clickingmad
25 Apr 2023

The behaviour of minyear / maxyear attributes on the calendar field seems to no longer reflect the documentation, or that of how Joomla 3.10.x functioned.

Steps to reproduce the issue

Create a calendar field with minyear and maxyear attributes set to -10 and 1 respectively.

Expected result

Calendar year is clamped between 2013 and 2023

Actual result

Calendar year is clamped between the years -0010 and 0001

System information (as much as possible)

Joomla 4.3.0

Additional comments

https://docs.joomla.org/Calendar_form_field_type states "minyear (optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative lower limit for the year selection. The user cannot select a year before this limit (starting with 3.7.0). If zero, which is the default, there is no limit."

It looks like this may have been of result of this commit (though I don't quite understand the motive behind said change)

d6b013d

avatar shane-clickingmad shane-clickingmad - open - 25 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Apr 2023
avatar richard67
richard67 - comment - 26 Apr 2023

It looks like this may have been of result of this commit (though I don't quite understand the motive behind said change)

d6b013d

For other readers: The mentioned commit belongs to PR #34870 .

@Fedik Do you remember why you have removed the getBoundary calls?

avatar Fedik
Fedik - comment - 26 Apr 2023

No idea, maybe to save a couple bites ?

Can probably revert that changes, need to look.

avatar Fedik Fedik - change - 26 Apr 2023
Labels Added: bug
avatar Fedik Fedik - labeled - 26 Apr 2023
avatar shane-clickingmad
shane-clickingmad - comment - 10 May 2023

Any update on this?

avatar Fedik
Fedik - comment - 10 May 2023

No, for now

avatar Fedik Fedik - change - 13 May 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-05-13 08:09:24
Closed_By Fedik
avatar Fedik Fedik - close - 13 May 2023
avatar Fedik
Fedik - comment - 13 May 2023

Please test #40580

Add a Comment

Login with GitHub to post a comment