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 previous 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

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


Current Time: Sun Nov 24 18:28:27 EST 2024

Total time taken to generate the page: 0.00861 seconds