From ec5dbdb0bde1624275d38090104395953bdcb5fd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 26 Oct 2013 06:56:35 +0000 Subject: [PATCH] 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 --- public/javascripts/application.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 8ffef5bf0..4ffef12f3 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -113,6 +113,7 @@ function buildFilterRow(field, operator, values) { var fieldId = field.replace('.', '_'); var filterTable = $("#filters-table"); var filterOptions = availableFilters[field]; + if (!filterOptions) return; var operators = operatorByType[filterOptions['type']]; var filterValues = filterOptions['values']; var i, select; -- 2.39.5