Jump to content

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


gudman

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...