News module ordering bug

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
tractorboy
Forum Members
Forum Members
Posts: 21
Joined: Thu Mar 23, 2006 11:06 am

News module ordering bug

Post by tractorboy »

I couldn't get the news module to order stories by news_title, the story title.  The fix is to change of actin.default.php to add "mn." before the field name :
      $query1 .= "ORDER BY mn." . str_replace("'", '', str_replace(';', '', $params['sortby'])) . " ";
Last edited by tractorboy on Thu Mar 13, 2008 3:23 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: News module ordering bug

Post by calguy1000 »

thanks, I've committed this change to svn.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”