Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » setOrderBy function working incorrectly
setOrderBy function working incorrectly [message #416] Sat, 18 November 2006 00:11 Go to next message
braingeyser is currently offline  braingeyser
Messages: 17
Registered: November 2006
Location: Melbourne Australia
Junior Member

There is a small typo in the function setOrderBy ($sql_orderby, $sql_orderby_seq=null); in std.table.class.inc line 2522

Supplying the paramater $sql_orderby_seq has no effect on the order by sequence because of the following code...

if (!empty($sql_orderby_seq)) {
          $this->sql_orderby_seq == $sql_orderby_seq; <-- testing for equality, not assignment
      } else {


This should read ...

if (!empty($sql_orderby_seq)) {
          $this->sql_orderby_seq = $sql_orderby_seq;
      } else {


Cheers,
Braingeyser


รข

[Updated on: Sat, 18 November 2006 00:15]

Report message to a moderator

Re: setOrderBy function working incorrectly [message #417 is a reply to message #416] Sat, 18 November 2006 04:49 Go to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
Thanks for spotting that. It will be fixed in the next release which will be in the next day or two (hopefully).

Previous Topic: Enum Type and 0 index.
Next Topic: Problem with pgsql database
Goto Forum:
  


Current Time: Sun Nov 24 15:57:34 EST 2024

Total time taken to generate the page: 0.00977 seconds