Hi,
just encountered a strange problem with 1.58RC.
I have the following categories for examples:
Now when adding a new category and move it into a existing category (for example Graphics) i end with "scrambled" categories.
RAW Converter and Technics are now sub-categories of news - for example.
Re-Sorting and applying does not solve the problem - nor does manually editing the sort order in the news_categories table fix the problem.
Ralf
Here is what happens:
Example:
'News' is category id 1 and sort order 000.
'CMS' is category id 2 and sort order 001.
'Wordpress' is category id 3 and sort order is 001-000.
This will display 'Wordpress' as a sub-category of 'CMS'' which is right.
After adding a new category and move it as a sub-category, 'Wordpress' has still the sort orderof 001-000, but is now displayed unter 'News'.
That is weird. Because 001-000 is the correct sortorder for the first child of the 2nd entry… Did you try reploading the page several times without applying? Just to rule out any browser page cache doing unwanted things. I've seen it cause a lot unecessary trouble…
That is correct actually. Before you save on the list a new item technicaly has no order.
Thanks for the specifics. I can confirm this happening starting with category 17 but only one time. As soon as I delete and add some more categories the sort order is correct again. However every new category indeed gets sortorder NULL after saving.
The sortorder is only set when categories are moved and saved again.
Sadly I can also reproduce this with 17 categories.Null is the default value of the database field. Perhaps we can workaround by setting it to an explicit 000 value on creating new items.
In any case this issue should really also happen with all other nested sorting like page as they all use the same principle.