? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
6 Jun 2018

Pull Request for Issue #20662

Summary of Changes

Adds a check to the sampledata JavaScript to ignore empty responses in the foreach loop.

I'm not sure what the current process is to generate the minimised JS files. Maybe @C-Lodder or @dgrammatiko can help here.

Testing Instructions

Expected result

Works

Actual result

A JS Error prevents more than one step executed. See original issue for screenshots.

Documentation Changes Required

None

avatar Bakual Bakual - open - 6 Jun 2018
avatar Bakual Bakual - change - 6 Jun 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jun 2018
Category Unit Tests Repository Administration com_admin
avatar brianteeman
brianteeman - comment - 6 Jun 2018

Wrong branch??

avatar infograf768
infograf768 - comment - 6 Jun 2018

Yep should be towards 4.0 (staging is fine btw).
I did download the modified js file from the Bakual:FixMultipleSampledata branch and it now works fine.
Patch is adding


						if (value === null) {
							continue;
						}

avatar dgrammatiko
dgrammatiko - comment - 6 Jun 2018

I'm not sure what the current process is to generate the minimised JS files.

Just run node build.js --compilejs in the root folder (assuming npm install was already executed before, to setup the dependencies)

avatar Bakual
Bakual - comment - 6 Jun 2018

Wrong branch??

Aw crap sure. I saw it but was to tired to remember bevore hitting the create button.

avatar Bakual Bakual - change - 6 Jun 2018
Title
Fix multiple sampledata
[4.0] Fix multiple sampledata
avatar Bakual Bakual - edited - 6 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jun 2018
Category Unit Tests Repository Administration com_admin JavaScript
avatar Quy
Quy - comment - 6 Jun 2018

generate the minimised JS files

or use https://skalman.github.io/UglifyJS-online/

avatar Bakual Bakual - change - 6 Jun 2018
Labels Added: ? ?
avatar Bakual
Bakual - comment - 6 Jun 2018

Minifed file is updated as well now. Ready to test.

avatar wilsonge wilsonge - change - 6 Jun 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-06-06 21:32:26
Closed_By wilsonge
avatar wilsonge wilsonge - close - 6 Jun 2018
avatar wilsonge wilsonge - merge - 6 Jun 2018
avatar wilsonge
wilsonge - comment - 6 Jun 2018

LGTM! Thanks :)

Add a Comment

Login with GitHub to post a comment