The following line is in node.admin.inc:

$sort = tablesort_sql($header, '', 'n.changed DESC');

tablesort_sql() only takes two arguments, so the third argument was ignored. Furthermore, the table already sorts by default due to the table header including:

$header[] = array('data' => t('Updated'), 'field' => 'n.changed', 'sort' => 'desc');

Comments

berdir’s picture

Status: Needs review » Needs work

Hum, seems that I forgot to convert this to DBTNG, no idea why...

This needs to be converted to DBTNG anyway. This needs to be a dynamic query with Extenders and node_access tag.

berdir’s picture

Another possibility to resolve this.. #450666: Filter DB Extender

brianV’s picture

Just posting an in-progress patch here for safekeeping, as I need to use my D7 cvs for some other work. Leaving at CNW, since the patch is not complete yet.

Berdir, feel free to take this one over, since you are much more familiar with DBTNG than I am.

brianV’s picture

Assigned: brianV » Unassigned
brianV’s picture

Title: Remove redundant tablesort_sql() argument from node.admin.inc » Convert node.admin.inc to use DBTNG
Issue tags: +DBTNG Conversion
berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new3.25 KB

Re-rolled the patch..

Status: Needs review » Needs work

The last submitted patch failed testing.

brianV’s picture

Status: Needs work » Needs review

Setting to 'needs review' - testbot was broken.

Status: Needs review » Needs work

The last submitted patch failed testing.

berdir’s picture

Status: Needs work » Needs review

Testbot, I don't believe you :)

Status: Needs review » Needs work

The last submitted patch failed testing.

andypost’s picture

Bot was broken

andypost’s picture

Status: Needs work » Needs review
brianV’s picture

Status: Needs review » Reviewed & tested by the community

Just reviewing this again. Works, and passes testbot. RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD, thanks!

Status: Fixed » Closed (fixed)
Issue tags: -DBTNG Conversion

Automatically closed -- issue fixed for 2 weeks with no activity.