On page admin/content/blocks if you set only the items per page filter, and type filter is empty, there are error, and never can get back:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: SELECT COUNT(*) AS expression FROM {bean} b WHERE (type IN ()) ; Array ( ) in PagerDefault->execute() (line 74 of /home/panparks/public_html/includes/pager.inc).

Comments

szantog’s picture

Status: Active » Needs review
StatusFileSize
new481 bytes

and patch

szantog’s picture

Title: Definitice broken admin page, when filter type isn't set » Definitive broken admin page, when filter type isn't set
StatusFileSize
new482 bytes

sorry, misspelling variable

indytechcook’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drewish’s picture

Version: 7.x-1.0-beta3 » 7.x-1.0-beta9
Status: Closed (fixed) » Needs review
StatusFileSize
new1.79 KB

This is still a problem when you first visit the page or reset the filters you won't see any blocks. I changed bean_get_filter() around to simplify it a bit and always return those keys—I'm assuming that the values in the session will be valid. That let's us simplify the query building in bean_list() and avoid showing people a list with no blocks.

indytechcook’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.