? Success

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
6 Nov 2016

Set error reporting to E_ALL (Like it should be for development)

Article Manager -> Edit Getting Started -> Versions -> Select a version -> popup url is like:

http://example.com/administrator/index.php?option=com_contenthistory&view=preview&layout=preview&tmpl=component&b05a6963679e395c78f4b883e2c00b56=1&version_id=2

repeated errors on page of

Notice: Undefined offset: 0 in example.com/administrator/components/com_contenthistory/helpers/contenthistory.php on line 123

Summary of Changes

Better checking of the array before attempting to access its members

Testing Instructions

Do above - replicate Notices, apply patch, see they disappear...

Documentation Changes Required

None

EDIT

So like a prat I committed my next fix to this branch too... so this PR now contains that too.

The problem that solves is that if you fake a non-existing version ID in the popup with a url like:

http://127.0.0.1:8000/administrator/index.php?option=com_contenthistory&view=preview&layout=preview&tmpl=component&b05a6963679e395c78f4b883e2c00b56=1&version_id=212312

Then you get
screen shot 2016-11-06 at 17 04 17

This PR also fixes that now...

avatar PhilETaylor PhilETaylor - open - 6 Nov 2016
avatar PhilETaylor PhilETaylor - change - 6 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Nov 2016
Category Administration Components
avatar PhilETaylor PhilETaylor - change - 6 Nov 2016
Labels Added: ?
avatar PhilETaylor PhilETaylor - change - 6 Nov 2016
The description was changed
avatar PhilETaylor PhilETaylor - edited - 6 Nov 2016
avatar PhilETaylor PhilETaylor - change - 6 Nov 2016
The description was changed
avatar PhilETaylor PhilETaylor - edited - 6 Nov 2016
avatar brianteeman
brianteeman - comment - 14 Nov 2016

I have tested this item successfully on 3a466a2


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

avatar brianteeman brianteeman - test_item - 14 Nov 2016 - Tested successfully
avatar joomla-cms-bot joomla-cms-bot - change - 18 Nov 2016
Category Administration Components Administration com_content com_contenthistory Components
avatar zero-24
zero-24 - comment - 18 Nov 2016

I have tested this item successfully on 3a466a2

?


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

avatar zero-24 zero-24 - test_item - 18 Nov 2016 - Tested successfully
avatar zero-24 zero-24 - change - 18 Nov 2016
Milestone Added:
Status Pending Ready to Commit
Labels Added: ?
avatar zero-24 zero-24 - change - 18 Nov 2016
Labels
avatar zero-24 zero-24 - change - 18 Nov 2016
Milestone Added:
avatar zero-24
zero-24 - comment - 18 Nov 2016

RTC


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

avatar rdeutz rdeutz - change - 18 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-18 20:39:18
Closed_By rdeutz
avatar rdeutz rdeutz - close - 18 Nov 2016
avatar rdeutz rdeutz - merge - 18 Nov 2016
avatar rdeutz rdeutz - reference | acd91fd - 18 Nov 16
avatar rdeutz rdeutz - merge - 18 Nov 2016
avatar rdeutz rdeutz - close - 18 Nov 2016
avatar photodude
photodude - comment - 18 Nov 2016

@PhilETaylor

make travis happy, travis I hate you, tab/spaces hell

These are all reasons why I'm trying to get a PHPCS2 version of our code standards tested and verified so we have automatic fixers to correct most of the general code style issues.

Add a Comment

Login with GitHub to post a comment