Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 303484

Hide type filter form in dblog view when there are no logs

$
0
0

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


Viewing all articles
Browse latest Browse all 303484

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>