https://bugzilla.wikimedia.org/show_bug.cgi?id=37214
Web browser: ---
Bug #: 37214
Summary: The "...further results" link causes the duplication
of the first column in the ask results table
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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]);
}
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l