? Failure

User tests: Successful: Unsuccessful:

avatar milux
milux
27 Sep 2016

Summary of Changes

Originally, I tried to get rid of writeDynaList() entirely (because of the awful document.writeln()) and do it all in PHP code. I was quite successful, but then I realized that the function was now used from JS code, so instead I cleaned up the code for the one and only place where this function is called now,
The first of the two commits includes excessive explanations how the function was simplified, second one is then just plain code and JSDoc.

Testing Instructions

none

Documentation Changes Required

none

avatar milux milux - open - 27 Sep 2016
avatar milux milux - change - 27 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2016
Category JavaScript
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2016
Labels Added: ?
avatar milux
milux - comment - 3 Oct 2016

@dgt41: More happy with the most recent commit?

avatar comp
comp - comment - 28 Oct 2016

Production version of core.js broke my site because of writedynalist() and it's use of writeln. Updating to the 4.0 version of core.js fixed this.


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

avatar milux
milux - comment - 28 Oct 2016

Well, most likely something else is broken now, but maybe you won't recognize it...
Are you using some aggressive resource optimizer? Like JCHOptimize with advanced settings?

avatar milux milux - change - 7 Nov 2016
The description was changed
avatar eXsiLe95
eXsiLe95 - comment - 21 Aug 2017

Since this fix is for Joomla 3.x and this version is comming to an end, can this be closed?
This fix is already open for Joomla 4 on #12282.

Also, this fix did not break my bugtesting installation, but there are no testing instructions provided so I can test.

@icampus

avatar brianteeman
brianteeman - comment - 21 Aug 2017

@eXsiLe95 Joomla 3 has at least three years of supported life remaining

avatar eXsiLe95
eXsiLe95 - comment - 21 Aug 2017

@brianteeman I see the point in Joomla 3.x living for at least the next three years, issues for this version shouldn't be closed right away. Since this issue is "only improving" code (which definitely is important, too), an there is no testing instruction provided, this issue will most probably never get tested (as we can see on the last comment about one year ago.

@milux Can you provide a testing scenario, so that these changes can be tested?

avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Aug 2017
The description was changed
Status Pending Information Required
avatar joomla-cms-bot joomla-cms-bot - edited - 21 Aug 2017
avatar milux
milux - comment - 21 Aug 2017

Any use of this function should do the job.
In its latest form, this is nothing more than a small code cleanup.
It should be semantically equivalent. If you can't confirm semantic equivalence by simply comparing the code, I'm comfortable with this being abandoned.

avatar eXsiLe95
eXsiLe95 - comment - 21 Aug 2017

@milux As far as I can see, your code seems to do the same thing, and it clearly reduced the mess in the code. However, only code looking like it does the same, it doesn't automatically mean it really does the same. Therefore, testing is needed.

Can you tell me where this code is used in Joomla, so that I can test that the changes do not affect the functionalities?

avatar SamuelSchepp SamuelSchepp - test_item - 22 Aug 2017 - Tested successfully
avatar SamuelSchepp
SamuelSchepp - comment - 22 Aug 2017

I have tested this item successfully on a4759c5

Still works as expected.
@icampus


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

avatar CiverBlack CiverBlack - test_item - 22 Aug 2017 - Not tested
avatar CiverBlack CiverBlack - test_item - 22 Aug 2017 - Tested successfully
avatar CiverBlack
CiverBlack - comment - 22 Aug 2017

I have tested this item successfully on a4759c5

Works exactly like before

I went in the backend to "Extensions" -> "Modules" and there to one random entry. On the right side you find Ordering. Below that is a dropdown menu. This code runs that. An before and after the patch its still functioning.

@icampus


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Aug 2017
Status Information Required Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Aug 2017

RTC after two successful tests.

avatar mbabker
mbabker - comment - 23 Aug 2017

The compressed file needs updating too.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Oct 2017

@milux can you please update as @mbabker comment above?

avatar milux milux - change - 1 Nov 2017
Labels Added: ?
avatar milux
milux - comment - 1 Nov 2017

I updated the branch and added a compressed version of the most recent core-uncompressed.js
Is that what you asked for? ?
Why are the compressed versions not automatically generated from the uncompressed ones? That would be far less error-prone imho...

avatar brianteeman
brianteeman - comment - 10 Apr 2018

@wilsonge @mbabker any reason that this has not been merged, No pointing in it sitting here for ever

avatar mbabker
mbabker - comment - 10 Apr 2018

I missed the comment about it being updated and apparently scanned over it when looking over RTC lists. Don't let me forget about it after next week's release.

avatar rdeutz rdeutz - change - 20 Apr 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-04-20 20:34:29
Closed_By rdeutz
avatar rdeutz rdeutz - close - 20 Apr 2018
avatar rdeutz rdeutz - merge - 20 Apr 2018

Add a Comment

Login with GitHub to post a comment