Closed nikosdion closed 3 years ago
//cc @Fedik this will be related to https://github.com/joomla/joomla-cms/pull/34870
If you don't have time i'll look into it this evening. Apologies @nikosdion
My only problem is that this happened after I had spent my weekend testing everything manually and thoroughly with Joomla 4 RC5 (well, at least whatever was included in the 4.0-dev branch at this time) and released new versions on Monday, confident that they work fine. Now all pages with date inputs appear broken and people are filing bug reports to me.
FWIW I am changing my software to use an HTML5 datetime-local input which is far more user-friendly than Joomla's calendar field — and doesn't break all the freaking time.
Yeah, after testing different langs I forgot to update HTMLHelper::calendar, there just missed a couple $data properties. I will check.
My only problem is that this happened after I had spent my weekend testing
All be good, no need to worry, no one deleting it.
FWIW I am changing my software to use an HTML5 datetime-local input
Also see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local and note that it only supports gregorian calendars while joomla has to support other calendars such as jalali
PR https://github.com/joomla/joomla-cms/pull/34949 should fix the issue.
@brianteeman I am pretty sure that my users prefer being able to manage their backups, the security of their site, their comments and their support tickets to seeing an error page because Joomla's more complete calendar is broken every second release. Before assuming that I don't care stop and think what is the impact of Joomla breaking the calendar field all the time vs using datetime-local. In the end of the day people care more about, dunno, restoring their backup when something doesn't work than they care about a localised calendar.
Closing as having a pull request. Please test #34949 . Thanks in advance.
Steps to reproduce the issue
Anywhere in your view template add one of these two lines:
Expected result
You see a calendar field
Actual result
Two warnings and an exception.
Exception: implode(): Argument #1 ($pieces) must be of type array, string given File layouts/joomla/form/field/calendar.php Line 107
Trace:
System information (as much as possible)
Environment
PHP Settings
Additional comments
This does not happen when using the calendar form field.
However, HTMLHelper is NOT deprecated, therefore this is a release blocker bug as it breaks something that's supposed to still work properly.