[Patch] Admin should remember last listing page
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
My users are working through a largish set of objects one by one. They select an item, edit it, and click the save button, which takes them back to the list of objects they were at. When they've finished a few dozen, though, and are working through the second or third page, clicking the save button takes them back to the first page of the list of objects; they find this annoying and confusing.
Here's a simple patch that solves this. It keeps track of all list parameters, not just page number; so it will take users back to the right point in a filtered search, for example.
This is implemented by storing the most recent change list parameters in the session, and restoring them, if present, when objects are saved.