mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
Fixes #181: Admin-ui Next/Prev displays incorrect number of pages when
filtering in use. All UI custom SQL queries need SQL_CALC_FOUND_ROWS to not break that functionality.
This commit is contained in:
parent
7e0f22ac66
commit
e0bdb36dc2
@ -608,7 +608,7 @@ class media_admin_ui extends e_admin_ui
|
||||
protected $pluginName = 'core';
|
||||
protected $table = "core_media";
|
||||
|
||||
protected $listQry = "SELECT m.*,u.user_id,u.user_name FROM #core_media AS m LEFT JOIN #user AS u ON m.media_author = u.user_id "; // without any Order or Limit.
|
||||
protected $listQry = "SELECT SQL_CALC_FOUND_ROWS m.*,u.user_id,u.user_name FROM #core_media AS m LEFT JOIN #user AS u ON m.media_author = u.user_id "; // without any Order or Limit.
|
||||
|
||||
// //protected $editQry = "SELECT * FROM #comments WHERE comment_id = {ID}";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user