Avoid error if _filters is not set

This commit is contained in:
Nathan Gray 2014-07-29 22:10:48 +00:00
parent 5b873215b0
commit d21e2b2dd7

View File

@ -277,7 +277,7 @@ app.classes.mail = AppJS.extend(
{
// Only cache first chunk of rows, if no search filter
if((!query_context || !query_context.start) && query_context.count == 0 && !(
query_context.self._filters.search || false)
!query_context.self._filters || query_context.self._filters.search || false)
)
{
// Make sure keys match, even if some filters are not defined