Author: icarnevale
Description:
If you define an ask on a page, and the results are paged, the link "...further results ...", which refers to the page Special:Ask passing the query as a parameter causes the duplication of the first column of the ask results table.
Ask generated in the column indicated in "mainlabel" is also added to the list of columns to display, and this causes duplication of the same.
My solution was to exclude the column if it's defined in the parameter "mainlabel".
includes/SMW_Infolink.php:
before line
$titletext = $this->mTarget . '/' . SMWInfolink::encodeParameters( $this->mParams );
i added
if(isset($this->mParams['mainlabel'])){ foreach($this->mParams as $k => $v){ if($v==='?='.$this->mParams['mainlabel'].'#') unset($this->mParams[$k]); } }
Version: master
Severity: normal
URL: http://semantic-mediawiki.org/wiki/Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/-3F%3DCity-23/-3FPopulation%3DNumber-20of-20inhabitants/limit%3D3/mainlabel%3DCity/offset%3D3