Skip to content

Commit

Permalink
bug 1325460: rule history ui broken by bug 1285975 (#201). r=ninadbhat
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Dec 28, 2016
1 parent 9f0a093 commit 5656112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion agent/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ setenv =
deps =
asynctest
flake8
coverage
# Pin coverage to work around https://bitbucket.org/ned/coveragepy/issues/541/coverage-43-breaks-nosetest-with-coverage
# Long term fix: https://bugzilla.mozilla.org/show_bug.cgi?id=1326046
coverage==4.2
pyflakes
pytest
pytest-catchlog
Expand Down
4 changes: 3 additions & 1 deletion ui/app/js/controllers/rules_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ function($scope, $routeParams, $location, $timeout, Rules, Search, $modal, $rout
$scope.removeFilterSearchWord = Search.removeFilterSearchWord;

$scope.filterBySelect = function(rule) {
if ($scope.pr_ch_selected[0].toLowerCase() === "all rules") {
// Always return all entries if "all rules" is the filter
// or if $scope.rule_id is set (meaning we're on the history page).
if ($scope.pr_ch_selected[0].toLowerCase() === "all rules" || $scope.rule_id) {
return true;
}
else if ($scope.pr_ch_selected && $scope.pr_ch_selected.length > 1) {
Expand Down

0 comments on commit 5656112

Please sign in to comment.