Skip to content

Commit

Permalink
Allowance for quality not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed Mar 23, 2018
1 parent a346dcb commit d088aa8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/reportFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,13 @@ jQuery(document).ready(function ($) {
getDescription: function () {
var r = [];
var op;
var quality = typeof indiciaData.filter.def.quality === 'string'
? indiciaData.filter.def.quality : indiciaData.filter.def.quality.toString();
var quality;
if (typeof indiciaData.filter.def.quality === 'undefined') {
quality = 'all';
} else {
quality = typeof indiciaData.filter.def.quality === 'string'
? indiciaData.filter.def.quality : indiciaData.filter.def.quality.toString();
}
if (quality !== 'all') {
r.push($('#quality-filter option[value=' + quality.replace('!', '\\!') + ']').html());
}
Expand Down

0 comments on commit d088aa8

Please sign in to comment.