Bug Fix - Article Ordering - Date

Phoca Documentation - creating documentation in Joomla! CMS
User avatar
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Feb 2009, 17:26

Bug Fix - Article Ordering - Date

Post by portugaonline » 30 Dec 2016, 00:42

In the options when I select the Article Ordering by date ascending or descending i have a sql error.

This have a error in query when ORDER BY c.date does not exist.

The correct is order by created or publish_up. Just choose the best option.

To resolve this bug just edit the file /components/com_phocadocumentation/helpers/phocadocumentation.php

and change the line 34 and 38 the word date and replace with created or publish_up

Code: Select all

34 - $orderingOutput = 'created ASC';
38 - $orderingOutput = 'created DESC';

User avatar
Phoca Hero
Phoca Hero
Posts: 42522
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: Bug Fix - Article Ordering - Date

Post by Jan » 31 Dec 2016, 01:27

Hi, thank you very much for the info, I will take a look at it for the next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project

Post Reply