? ? ? Pending

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
21 Jun 2017

Pull Request for Issue #16590 .

Summary of Changes

List of changes:

  • Make all comparisons strict
  • fix the bottom buttons (clear, today, close)
  • Clear button disappeared if today button was disabled
  • Fix the inconsistency of manual input (enter, tab, etc)

Testing Instructions

Create a new article and fill the publishing fields with different methods (manual using the UI)
save the article
Edit again the fields (try clearing the filed with backspace, the clear button) and also change the values manually and using the UI
Report any remaining inconsistencies, if any

Expected result

Consistent behaviour

Actual result

Inconsistent behaviour

Documentation Changes Required

Calling @farhadst to crash test the Jallali calendar

eecb193 20 Jun 2017 avatar dgt41 fixes
avatar dgt41 dgt41 - open - 21 Jun 2017
avatar dgt41 dgt41 - change - 21 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jun 2017
Category JavaScript
avatar dgt41 dgt41 - change - 21 Jun 2017
Labels Added: ?
avatar infograf768
infograf768 - comment - 21 Jun 2017

Please @farzadtaheri also test this in Persian

9fd1e06 21 Jun 2017 avatar dgt41 tests
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jun 2017
Category JavaScript JavaScript Unit Tests
avatar infograf768 infograf768 - test_item - 21 Jun 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 21 Jun 2017

I have tested this item successfully on 9fd1e06


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16794.

avatar rdeutz rdeutz - change - 21 Jun 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-21 18:55:25
Closed_By rdeutz
Labels Added: ? ?
avatar rdeutz rdeutz - close - 21 Jun 2017
avatar rdeutz rdeutz - merge - 21 Jun 2017
avatar dgt41
dgt41 - comment - 26 Jun 2017

@farzadtaheri @farhadst can you please test Joomla 3.7.3 RC! This is really important, thank you

PS you can get the installable here: https://github.com/joomla/joomla-cms/releases/tag/3.7.3-rc1

avatar farzadtaheri
farzadtaheri - comment - 27 Jun 2017

@dgt41 i have this issue yet: #16628 in Joomla 3.7.3 RC!

avatar dgt41
dgt41 - comment - 27 Jun 2017

@farzadtaheri your solution Joomla.submitform('field.storeform', element.form); needs to be merged, can you do a PR for that?

avatar farzadtaheri
farzadtaheri - comment - 27 Jun 2017

@dgt41 please check #16721.

avatar farzadtaheri
farzadtaheri - comment - 27 Jun 2017

my solution Joomla.submitform('field.storeform', element.form); is work, but there is another problem after this change!
calendar fields time shift after each category field value change, when i set Asia/Tehran time zone (or another time zones) in configuration!
please see this issue #16665

avatar farhadst
farhadst - comment - 27 Jun 2017

@dgt41 I have test joomla 3.7.3 RC!
problem for select date by popup calendar fix and not reset but after set manual time and date and save it, time and date reset to today.

avatar dgt41
dgt41 - comment - 28 Jun 2017

time and date reset to today.

  • What was your input?
  • If what you entered was invalid the calendar falls back to today!
avatar infograf768
infograf768 - comment - 29 Jun 2017

@dgt41
I confirm the issue

I copied a date in the future from an existing article publishing date and pasted it in an article just created.

Entering the date in the future (equivalent of 2017-09-29 10:57:00) :
screen shot 2017-06-29 at 10 59 59

After save
screen shot 2017-06-29 at 11 00 26

It works perfectly in Gregorian.

avatar infograf768
infograf768 - comment - 29 Jun 2017

Equivalent in en-GB

screen shot 2017-06-29 at 11 07 22

avatar farhadst
farhadst - comment - 29 Jun 2017

@dgt41
I entered valid calendar like 1396-04-03 11:10:19 or by Persian number like ۱۳۹۶-۰۴-۰۳ ۱۱:۱۰:۱۹
In both cases after save calendar reset to current time and date

in Gregorian calendar every things is ok, type calendar by manual or popup calendar is fine

avatar infograf768
infograf768 - comment - 29 Jun 2017

@farhadst
On it now. As soon as there is a patch we let you know

avatar infograf768
infograf768 - comment - 30 Jun 2017

@farzadtaheri @farhadst Please test #16922 urgently

avatar drewgg
drewgg - comment - 19 Jul 2017

Some of these issues may be related to #17171. I made some changes that fix those issues ( #17183 ) but it involves removing a conditional that I don't fully understand the purpose of (that conditional was added in this pull request).

@dgt41, could you weight in on the the purpose of the if (typeof calObj.dateClicked === 'undefined') { conditional and why the false path is needed?

Originally, instead of removing it, I changed it to if (typeof calObj.dateClicked === 'undefined' || !calObj.dateClicked) { which fixed it for all cases except when using the "today" button (which results in calObj.dateClicked = true causing the else path to be taken).

Add a Comment

Login with GitHub to post a comment