We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

[SOLVED] Bug Report: CP Entry Manager not retaining sorted columns on pagination links

Development and Programming

Mike Keller's avatar
Mike Keller
1 posts
4 years ago
Mike Keller's avatar Mike Keller

Description of the problem Losing column sort after clicking pagination links in the CP entry manager.

How To Reproduce Steps to reproduce the behavior: Go to Entry Manager for channel with more than 25 entries Sort by any column (i.e. Status) Click Page 2 Notice your list is no longer sorted

Environment Details:

Version: [5.4.2] PHP Version [7.4] MySQL Version [5.6.43] OS: [Linux] Web Server: [Apache]

Possible Solution Need to retain the sort paramter within the $link variable when outputting the pagination urls. The following actually works: 1st sorted url on page 1 (sorted by status): /system/index.php?/cp/publish/edit&search_in=titles&perpage=25&search;=&sort_col=column_status&sort_dir=asc

If i simply append “&page=2” to that url, it works. i.e.: /system/index.php?/cp/publish/edit&search_in=titles&perpage=25&search;=&sort_col=column_status&sort_dir=asc&page=2

Default page2 or any page link url without doing the above is: /system/index.php?/cp/publish/edit&search_in=titles&perpage=25&search;=&sort_col=column_entry_date&sort_dir=desc

See the difference?

Hopefully this is an easy fix?

(This post is also on GitHub, but no reply as of today.)

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

Just posting link to Github issue for reference. https://github.com/ExpressionEngine/ExpressionEngine/issues/1057

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

Per the Github issue, this was resolved in 6.0.3 (the latest released version).

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.