? Success

User tests: Successful: Unsuccessful:

avatar alikon
alikon
21 Feb 2015

Steps to reproduce the issue

In the administration side add a new article item
look on the left to the categories list

Expected result

the categories are ordered
p340a administration article manager add new article

Actual result

the categories are not ordered
p340a administration category manager add a new articles category

System information

PostgreSQL 9.3.5
Joomla 3.4.0.rc

Additional comments

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
avatar alikon alikon - open - 21 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 21 Feb 2015
Labels Added: ?
avatar waader
waader - comment - 21 Feb 2015

@alikon works with postgres, mysql and it solves #6073 too! :thumbsup:

avatar zero-24 zero-24 - change - 21 Feb 2015
Easy No Yes
avatar waader waader - test_item - 21 Feb 2015 - Tested successfully
avatar zero-24 zero-24 - change - 21 Feb 2015
Category Postgresql
avatar wilsonge wilsonge - change - 24 Feb 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-02-24 21:11:26
avatar wilsonge wilsonge - close - 24 Feb 2015

Add a Comment

Login with GitHub to post a comment