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

By default show all available device types #8055

Merged
merged 1 commit into from Jun 8, 2015
Merged

By default show all available device types #8055

merged 1 commit into from Jun 8, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jun 7, 2015

fixes #7920

By default it will show all device types, currently 12. As soon as one changes the limit, the configured limit will be used.

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jun 7, 2015
@mattab mattab added this to the 2.14.0 milestone Jun 7, 2015
@@ -26,6 +27,8 @@ protected function init()

public function configureView(ViewDataTable $view)
{
$unknownTypeCount = 1;
$view->requestConfig->filter_limit = $unknownTypeCount + count(DeviceParser::getAvailableDeviceTypeNames());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi @sgiehl: the Device detector DeviceParser is now API as far as Piwik is concerned (maybe it already was, didn't check)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was used before in GetType

mattab pushed a commit that referenced this pull request Jun 8, 2015
By default show all available device types
@mattab mattab merged commit 254ec09 into master Jun 8, 2015
@mnapoli mnapoli deleted the 7920 branch June 8, 2015 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants