? Success

User tests: Successful: Unsuccessful:

avatar piotrmocko
piotrmocko
8 Feb 2014

After making following fixes
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32693&start=0
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32166&start=0
there is a PHP notice about undefined $parts variable which is clear when you will have a look at the code.

Enable maximal error reporting in global configuration. Make an ajax request to module which name does not have _ and - (also without prefix mod_). You will get PHP notice in JSON response which would break code.
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=33121

avatar piotrmocko piotrmocko - open - 8 Feb 2014
avatar piotrmocko
piotrmocko - comment - 8 Feb 2014

To make it easier testing, if you need even you will take a look on code, I have added module on Code Tracker to test it.

avatar Bakual
Bakual - comment - 9 Feb 2014

Maybe better just declare $parts = array(); before line 60. Imho that would be better codestyle.
Then the check would work as it is.
However your solution should work as well.

avatar piotrmocko
piotrmocko - comment - 9 Feb 2014

I will leave this decision for person how will merge this PR.

avatar Bakual
Bakual - comment - 9 Feb 2014

I will leave this decision for person how will merge this PR.

We usually merge what is provided and don't change code :smile:

avatar wilsonge
wilsonge - comment - 12 Feb 2014

Parts is already defined actually (https://github.com/joomla/joomla-cms/blob/master/components/com_ajax/ajax.php#L32). So I don't see why you'd get this error (see this commit: b4c0115)

avatar piotrmocko
piotrmocko - comment - 13 Feb 2014

You are right. Now I found that it was fixed in Joomla 3.2.2 and I created Code tracker item when it was a bug in Joomla 3.2.1

avatar piotrmocko piotrmocko - change - 13 Feb 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-02-13 08:50:07
avatar piotrmocko piotrmocko - close - 13 Feb 2014
avatar piotrmocko piotrmocko - close - 13 Feb 2014
avatar wilsonge
wilsonge - comment - 13 Feb 2014

Ahh I see :)

Add a Comment

Login with GitHub to post a comment