Loading...
 
Skip to main content

admin categories displays sub category under wrong parent in special cases

Status
Closed
Subject
admin categories displays sub category under wrong parent in special cases
Version
1.9.x
Category
  • Error
Feature
Category
Resolution status
Fixed or Solved
Submitted by
Nelson Ko
Lastmod by
Nelson Ko
Rating
(0)
Description

If you have categories and sub-categories like the following:

try
try::tt
try2
try2::tt

The try::tt sub-category will be placed under parent try instead of parent try2.

This is because the ksort($ret) towards the end of get_all_categories_respect_perms in categlib sorts try::tt after try2:tt (since ':' comes after "2" in the ASCII table).

Solution
committed to categlib and tiki-admin_categories.php
Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
920
Created
Monday 23 October, 2006 20:13:00 UTC
by Unknown
LastModif
Tuesday 12 June, 2007 17:39:24 UTC


Show PHP error messages