? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
15 Dec 2016

As reported by @brianteeman if you enabled language debuggin, you will get a fatal error when trying to edit an article in backend.
This is because the getLayoutData method is run both for the getInput and getLabel methods and thus the value is processed twice. Now the first round works fine and leaves the value as **2016-12-15**, but the second round PHP can't work with that value anymore because it's no longer a valid date string.

Summary of Changes

This PR moves the value processing from the getLayoutData method to the getInput one so it is only run once.

Testing Instructions

  • Enable language debugging and edit an article in backend. See that the error occurs. (Form looks broken and there is a funny browser title).
  • Apply PR and the form works again.
  • Make sure the date eg in "Publish Up" is as expected, also taking also into account timezone settings.
  • Make sure the translate dateformat works. You need to add language strings to your second language as explained in #13158 (when you're at it, test that one as well :smile)

Documentation Changes Required

None

avatar Bakual Bakual - open - 15 Dec 2016
avatar Bakual Bakual - change - 15 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Dec 2016
Category Libraries
avatar infograf768
infograf768 - comment - 17 Dec 2016

I have tested this item successfully on 4826e6d

Works fine here.

screen shot 2016-12-17 at 11 40 18


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13233.
avatar infograf768 infograf768 - test_item - 17 Dec 2016 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 18 Dec 2016

I have tested this item successfully on 4826e6d

Test OK


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

avatar anibalsanchez anibalsanchez - test_item - 18 Dec 2016 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 18 Dec 2016
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 18 Dec 2016

RTC


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

avatar jeckodevelopment jeckodevelopment - change - 18 Dec 2016
Milestone Added:
avatar rdeutz rdeutz - change - 18 Dec 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-18 20:18:40
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 18 Dec 2016
avatar rdeutz rdeutz - merge - 18 Dec 2016
avatar rdeutz rdeutz - reference | 82faaae - 18 Dec 16
avatar rdeutz rdeutz - merge - 18 Dec 2016
avatar rdeutz rdeutz - close - 18 Dec 2016
avatar Bakual Bakual - head_ref_deleted - 18 Dec 2016
avatar cpfeifer cpfeifer - reference | fb3e6ba - 22 Dec 16

Add a Comment

Login with GitHub to post a comment