Skip to content

Commit

Permalink
fixes #12037 - correctly determine 'type' of rule for display
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmckay committed Oct 1, 2015
1 parent 1a5c16b commit 9098daa
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -18,9 +18,9 @@ angular.module('Bastion.content-views').controller('PackageFilterController',
typeId = 'equal';
} else if (rule['min_version'] && !rule['max_version']) {
typeId = 'greater';
} else if (!rule.min && rule['max_version']) {
} else if (!rule['min_version'] && rule['max_version']) {
typeId = 'less';
} else if (rule.min && rule['max_version']) {
} else if (rule['min_version'] && rule['max_version']) {
typeId = 'range';
} else {
typeId = 'all';
Expand Down

0 comments on commit 9098daa

Please sign in to comment.