You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Some columns of widget’s table are not sorted while they look like sortable.
To reproduce the issue any plugin can be used. I used Actions plugin:
1)Open API.php and place there
```
function getSortColumnTest()
{
$dataTable = new Piwik_DataTable;
for($i = 0; $i < 5; $i++)
{
$dataTableRow = new Piwik_DataTable_Row;
$dataTableRow→setColumns(array(‘label’=>"$i", ‘page’=>"$i", ‘entry’=>"name".(10 – $i)));
$dataTable→addRow($dataTableRow);
}
return $dataTable;
}
```
2)Insert in the first line of function getDownloads():
```
return $this→getSortColumnTest();
```
3)Open Controller.php and comment in function getDownloads() the following lines:
```
$view→setColumnsToDisplay( array(‘label’,‘nb_uniq_visitors’) );
$view→disableSort();
```
4)Select in Piwik’s menu Actions→Downloads. ISSUE: columns Page and Entry are not sorted despite clicking on their headers.
The text was updated successfully, but these errors were encountered: