Page MenuHomePhabricator

Special:Properties doesn't always display page count
Closed, ResolvedPublic

Description

Author: henrigerrits

Description:
In SMW 1.4.2, Special:Properties doesn't always show the page count; for some properties it displays the sort name instead.

The fix should be quite simple: the order of result fields in the SQL select subquery on line 940 of SMW_SQLStore2.php (function getPropertiesSpecial) is inconsistent with subsequent subqueries in the union:

$res = $db->query('(SELECT smw_id, smw_title, smw_sortkey, COUNT(*) as count FROM ' .

This line should read:

$res = $db->query('(SELECT smw_id, smw_title, COUNT(*) as count, smw_sortkey FROM ' .


Version: unspecified
Severity: minor

Details

Reference
bz18884

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:43 PM
bzimport set Reference to bz18884.

This bug has been closed in SVN.