[wp-trac] [WordPress Trac] #16166: Ajax Table Sorting Session Broken with Bulk Actions
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 9 15:19:35 UTC 2011
#16166: Ajax Table Sorting Session Broken with Bulk Actions
--------------------------+-----------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Keywords:
--------------------------+-----------------------------
The 3.1 new ajax table sorting is loosing data in its session when js +
bulk requests are used in the session.
I ran over it while analyzing why pagination is lost in #16162 and it came
to my attention that sorting is lost as well. While the number of the page
is easier to aquire, sorting information can get lost in a session of http
requests (as a more formal description of "using the admin").
The loss is a session break between Ajax and non-Ajax requests:
* If JavaScript is enabled, the table contents is requested via an Ajax
request, the location of the page does not change while navigating the
table's data.
* If JavaScript is disabled, the table contents is requested via a
standard HTTP "full page" request, the location of the page ''does''
change.
The session break now is when bulk actions come into play: Bulk actions
are triggering a "full page" request but without leaving any information
(or at least without leaving sorting information) to the HTTP request
scope as long as those information has been gathered by JavaScript
processes.
With JavaScript disabled, the sorting information is not lost.
Bulk actions should always have all navigation related information
regardless how the data to create that request has been acquired by the
user: Via ajax calls or by simple HTTP "full page" requests.
Related: #14579; #15580
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16166>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list