User tests: Successful: Unsuccessful:
Pull Request for Issue #45369 .
Create/edit article, mistype date in any of the date fields (not using the date picker) on the Publishing tab.
Proper date: 2025-04-23 12:01:40
Mistyped date: 20225-04-23 12:01:40
Throws error:
Call to a member function format() on false
npm ci
)The current year is used.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Language & Strings Repository NPM Change Libraries |
Labels |
Added:
Language Change
NPM Resource Changed
PR-5.3-dev
|
For the farsi changes it needs to be tested by a native speaker but as far as I can tell it does not work as described in the PR. Instead of a fatal error you get an invalid date message - which is better than it is now but not as described
@brianteeman : After checkout, did you make a
npm ci
in your test environment?
The invalid data message only appears if the javascript is not build into compressed form.
yes of course
@brianteeman Can you tell me your test environment:
did you test using arabic or were you pasting an english character date? From looking at your code you are assuming that the year is in the gregorian calendar. ie 1900 or 2000. ~The current year in the jalali calendar is 1404
I did not translate the date in the error message to jalaali. I know the year 1404. I'll look at the Farsi language, please be patient, as RTL is a little unfamiliar to me.
My gut feeling is that this PR is taking the wrong approach. I would just be outputting an error message stating that the input is incorrect and NOT trying to correct it.
Work in progress, do not test code. Should I close the PR and reopen when I am done?
You can close it or change it to a draft
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-07-21 12:40:38 |
Closed_By | ⇒ | tkuschel |
Almost but not quite
Data Entry
After Save