Last modified: 2009-07-29 13:11:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20884, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18884 - Special:Properties doesn't always display page count
Special:Properties doesn't always display page count
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-23 03:09 UTC by Henri Gerrits
Modified: 2009-07-29 13:11 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Henri Gerrits 2009-05-23 03:09:59 UTC
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 ' .
Comment 1 Markus Krötzsch 2009-07-29 13:11:04 UTC
This bug has been closed in SVN.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links