User tests: Successful: Unsuccessful:
In the administration side add a new article item
look on the left to the categories list
the categories are not ordered
PostgreSQL 9.3.5
Joomla 3.4.0.rc
the old query
SELECT DISTINCT a.id AS value, a.title AS text, a.level, a.published
FROM (
SELECT DISTINCT id,title,level,published,parent_id,extension,lft,rgt
FROM d7jwf_categories
WHERE (extension = 'com_content')
AND published IN (0,1)
ORDER BY lft ASC) AS a
LEFT JOIN `d7jwf_categories` AS b
ON a.lft > b.lft
AND a.rgt < b.rgt
the new one
SELECT DISTINCT a.id AS value, a.title AS text, a.level, a.published, a.lft
FROM (
SELECT id,title,level,published,parent_id,extension,lft,rgt
FROM d7jwf_categories
WHERE (extension = 'com_content')
AND published IN (0,1)) AS a
LEFT JOIN `d7jwf_categories` AS b
ON a.lft > b.lft
AND a.rgt < b.rgt
ORDER BY a.lft ASC
Labels |
Added:
?
|
Easy | No | ⇒ | Yes |
Category | ⇒ | Postgresql |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-24 21:11:26 |
@alikon works with postgres, mysql and it solves #6073 too!