Allow Zuul status page to update with periodic tasks present

Recent addition of filter by change number breaks and prevents status
updating if there is an active task in the queue w/o id field such as
periodic tasks are.

Change-Id: I51ba1b218abbf22990fc9b94d569f897a4c445c0
This commit is contained in:
Yuriy Taraday 2014-05-29 11:46:46 +04:00
parent 4f25a69a89
commit 0a23df5a98

View File

@ -79,7 +79,7 @@ function is_hidden(project, change_id) {
$.each(filters, function(filter_i, filter) {
if(project.indexOf(filter) != -1)
hide = false;
if(change_id.indexOf(filter) != -1)
if(change_id !== null && change_id.indexOf(filter) != -1)
hide = false;
});
return hide;