Jump to content

\IPS\Helpers\Table\Db group by paginator issue (?)


gudman

Recommended Posts

Posted

Hello, guys,

I think that I found a small problem with system/Helpers/Table/Db.php:

/* Count results (for pagination) */
        $count = \IPS\Db::i()->select( 'count(*)', $this->table, $where );

and...

$count        = $count->first();

This method of counting lines not works properly when we use "GROUP BY" clause.

May be better:

$count = \IPS\Db::i()->select( 'count(*)', $this->table, $where, NULL, NULL, $this->group );

//...

$count			= $count->count();

 

Thank you in advance.

Posted

Dear friends,

I have no idea how to deal with support because it's not funny :-D

I decided to post about this thing there and wait for comment from developers :-)

Posted

Well, since this is a bug and bug reports must be made opening a ticket in the client area since a while ago (they closed the public bug tracker, only IPS staff can post there now): https://www.invisionpower.com/clientarea/support/

 

This forum is to actually ask IPS developers to implement changes in the framework so that us 3rd party developers can access specific areas, data, code and so on. They only check it from time to time and not constantly like tickets.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...