Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widget columns are not sorted #5770

Closed
anonymous-matomo-user opened this issue Aug 27, 2008 · 1 comment
Closed

widget columns are not sorted #5770

anonymous-matomo-user opened this issue Aug 27, 2008 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

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.

@mattab
Copy link
Member

mattab commented Nov 20, 2008

Sergey, can you please try the trunk/ and let me know if this bug has been fixed with the latest commit. thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants