? ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
7 Apr 2020

Pull Request for Issue #28386 .

Summary of Changes

Add an exception for calendar fields when we do a reload (for example on category change) and if the data validation fails.

In both cases we iterate thru all form fields and check for the field type Calendar, if found we use the filter data for the saved session data.

Testing Instructions

  • Set an UTC offset in the settings
  • Create a custom field
  • Create an article and enter a publish date.
  • Save it.
  • Check the date, should still be the same
  • Change the category
  • A page reload happens.
  • Check the date, should still be the same

Second test

Do the same as in test one but add invalid field content

  • Add a broken Url to a Link field (ex. broken://field)
  • After save you get a error message and the publish date should still be the same

Expected result

Same date as before

Actual result

Date fields get changed by timezone offset after every save/reload

Documentation Changes Required

no

avatar HLeithner HLeithner - open - 7 Apr 2020
avatar HLeithner HLeithner - change - 7 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2020
Category Libraries
avatar richard67
richard67 - comment - 7 Apr 2020

@HLeithner As far as I did read in the issue, it needs to create a custom field for articles to reproduce the issue with reload on category change. I've just checked and can reproduce the issue only when having that custom field. Could you update your testing instructions accordingly, i.e. just add a step "Create a custom field of any type for articles" or so between the 1st and the 2nd step of the first test?

avatar HLeithner
HLeithner - comment - 7 Apr 2020

you don't need to create a custom field

avatar HLeithner HLeithner - change - 7 Apr 2020
The description was changed
avatar HLeithner HLeithner - edited - 7 Apr 2020
avatar HLeithner
HLeithner - comment - 7 Apr 2020

Ok you have to add a custom field ;-)

avatar richard67
richard67 - comment - 7 Apr 2020

I have tested this item successfully on 2a285e9


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

avatar richard67 richard67 - test_item - 7 Apr 2020 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 7 Apr 2020

I have tested this item successfully on 2a285e9

Tested successfully, followed your testing instructions.


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

avatar coolcat-creations coolcat-creations - test_item - 7 Apr 2020 - Tested successfully
avatar Quy Quy - change - 7 Apr 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 7 Apr 2020

RTC


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

avatar richard67
richard67 - comment - 14 Apr 2020

@HLeithner We just were pointed by @laoneo in the Glip chat to an old PR #17859 . Reading that it seems to me that it solves the same issue than this one. Could you both check that? I will later when I have enough time check the other PR, too.

avatar richard67
richard67 - comment - 14 Apr 2020

Hmm, it seems when backend language is Persian and website time zone is not UTC, there is still an issue with all datetime fields in the Published tab are empty after having changed the category.

With both PR #17859 and this one here applied together this is solved, and all is fine with any website time zone and with any backend language.

avatar infograf768
infograf768 - comment - 14 Apr 2020

#17859 is now RTC.

avatar richard67
richard67 - comment - 14 Apr 2020

Yes, we need both PR's, that one and this here, to be really safe in Persian with time zone not UTC.

avatar HLeithner HLeithner - change - 14 Apr 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-14 14:55:58
Closed_By HLeithner
Labels Added: ? ?
avatar HLeithner HLeithner - close - 14 Apr 2020
avatar HLeithner HLeithner - merge - 14 Apr 2020
avatar HLeithner
HLeithner - comment - 14 Apr 2020

Thanks

avatar HLeithner
HLeithner - comment - 14 Apr 2020

hmm, wasn't plan to merge my own pr... anyway pr is needed and there was no better solution yet

Add a Comment

Login with GitHub to post a comment