Fixed: JS-error while using a global custom query w/ project filter in a project context (#15190).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12234 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-10-26 06:56:35 +00:00
parent 41ade07171
commit ec5dbdb0bd
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ function buildFilterRow(field, operator, values) {
var fieldId = field.replace('.', '_'); var fieldId = field.replace('.', '_');
var filterTable = $("#filters-table"); var filterTable = $("#filters-table");
var filterOptions = availableFilters[field]; var filterOptions = availableFilters[field];
if (!filterOptions) return;
var operators = operatorByType[filterOptions['type']]; var operators = operatorByType[filterOptions['type']];
var filterValues = filterOptions['values']; var filterValues = filterOptions['values'];
var i, select; var i, select;