]> source.dussan.org Git - redmine.git/commitdiff
Fixed: JS-error while using a global custom query w/ project filter in a project...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Oct 2013 06:56:35 +0000 (06:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Oct 2013 06:56:35 +0000 (06:56 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12234 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 8ffef5bf0d8bee9ef0eadb1b3317c23a6f284688..4ffef12f337cf08ff6856c24746e839b19ab2cc8 100644 (file)
@@ -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;