Ticket #2192 (new defect)
Allow "DESC" ordering on CommentTableField
| Reported by: | mariocesar | Owned by: | aoneil |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.4.0 |
| Component: | CMS - General | Version: | |
| Severity: | medium effort / impact | Keywords: | CommentTableField notformerge |
| Cc: | Hours: |
Description
Using the SVN 48175 rev, the admin/comments get a Fatal Error
FATAL ERROR: DATABASE ERROR: Couldn't run query: SELECT `PageComment`.*, `PageComment`.ID, if(`PageComment`.ClassName,`PageComment`.ClassName, 'PageComment') AS RecordClassName FROM `PageComment` WHERE (Created DESC) ORDER BY Created DESC | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC) ORDER BY Created DESC' at line 1 At line 431 in /var/www/sczlearn/sapphire/core/model/Database.php
The declared WHERE (Created DESC) appears to be a Syntax SQL Error. The SQL Query is already sorting the Created field.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
