Failure

User tests: Successful: Unsuccessful:

avatar zjw
zjw
23 May 2013

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30997

I have created patches for v3.1 and v2.5 that fix the problems described above.

In addition to fixing the above problems, the patches remove a bit of superfluous code in JTableNested::rebuild(), wherein, "If the table has an ordering field, use that for ordering."

In the case of v3.1, there are no nested tables with an ordering column, so the code clearly does nothing.

In the case of v2.5, the only nested table with an ordering column is #__menu, but v2.5 doesn't actually use the column for anything (it is filled with 0), so again, the code does nothing. However, there is or was a problem with JUpgrade putting data in the ordering column, causing rebuild() to sort incorrectly, resulting in problems when users tried to reorder menu items. Removing this code should help anyone still suffering from the problem.

Other older issues that I came across that might be related to this issue:

[#26655] *Ordering column issue for _menu table in sample_data.sql
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=26655

[#26675] Menu ordering not working
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=26675

[#28870] All #__menu_ordering rows reads 0
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28870

[#29379] Menu item re-ordering issue
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29379

[#29807] Order category/menu (JTableNested) doesn't work on pagination != 1
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29807

[#30872] Wrong sorting order on menuitems
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30872

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar zjw zjw - open - 23 May 2013
avatar infograf768
infograf768 - comment - 20 Jul 2014

Not only this is targeted to master, but it is obsolete and can't be applied.

avatar Gyurltrini
Gyurltrini - comment - 25 Aug 2014

Hi! I would like to get this changed in joomla 3.3.3+. I had the items in a specific order and almost every time I look at the site, the items are rearranged in no particular order. I have not tried the amended file as yet though - I wasn't sure if the amended file will work with the current version of joomla that I have.

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar brianteeman brianteeman - change - 25 Aug 2014
The description was changed
Status New Pending
Build .
avatar brianteeman brianteeman - change - 19 Sep 2014
The description was changed
avatar nicksavov
nicksavov - comment - 16 Oct 2014

Hi guys,

Please submit an updated Pull Request. Here's an easy way how:
http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

avatar nicksavov nicksavov - change - 16 Oct 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 17 Oct 2014
The description was changed
Title
[#30997] Fix reordering of menus and categories.
Fix reordering of menus and categories.
avatar RCheesley
RCheesley - comment - 8 Nov 2014

Should this be tested in current state or does it need updating?

avatar Willroz
Willroz - comment - 15 Nov 2014

Hi,

I just tried to replicate the issue as described here:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30997

I was using the 3.4.0-dev install. All of the menu items reordered properly in my test.

Has this been resolved?

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

avatar Hackwar
Hackwar - comment - 17 Nov 2014

Since there has been no reply from the original contributor in 4 months and @Willroz could not replicate the issue, please close this one.

avatar jissues-bot jissues-bot - close - 17 Nov 2014
avatar Hackwar Hackwar - change - 17 Nov 2014
Status Pending Closed - No Reply
avatar jissues-bot
jissues-bot - comment - 17 Nov 2014

Set to "closed" on behalf of @Hackwar by The JTracker Application at issues.joomla.org/joomla-cms/1182

avatar jissues-bot jissues-bot - change - 17 Nov 2014
Closed_Date 0000-00-00 00:00:00 2014-11-17 21:56:08
avatar jissues-bot jissues-bot - change - 17 Nov 2014
Title
Fix reordering of menus and categories.
[#30997] Fix reordering of menus and categories.

Add a Comment

Login with GitHub to post a comment