Problem/Motivation
The type
filter performs a query to the database to fetch which are the available types to display in the form.
If the user selects a specific type form the views UI and later this type is no longer available (maybe because logs were cleared) an error is displayed:
This also happens if the type filter is not exposed.
Proposed resolution
Hide the type filter when there are no logs. As the dblog module does when views module is not installed.
Remaining tasks
Write a patch with the instructions provided in #15. Include the test attached there as well.
User interface changes
When there are no logs in the database the Type field will be hidden. This is consistent with the behavior dblog shows when no using views.
API changes
None