Page MenuHomePhabricator

Headers in 'category' format don't display correctly in SMW 1.6
Closed, ResolvedPublic

Description

In the 'category' query format, the page names are meant to be split up by their first letter, with each letter getting its own header. Unfortunately, this isn't currently working with SMW 1.6 - no letters show up in the headers. I believe that's due to a problem with getSortkey(), which the format uses to get the first letter - it seems to always return a blank value, at least in this case.

I'm setting the severity to 'major' because this is the default query format used by the Semantic Drilldown extension.


Version: unspecified
Severity: major

Details

Reference
bz28687

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:24 PM
bzimport set Reference to bz28687.

I added a check for such empty keys and use the page name itself instead when this is the case, which solves the issue in the QP, in r88991. It seems rather odd that SMW is returning an empty sort key though, instead of no sort keys. So if this is a bug, it is still there.