From 183fda0962133baee89cb1d91cc9037c1a97903c Mon Sep 17 00:00:00 2001 From: akrasilnikov Date: Tue, 8 Oct 2013 07:38:02 +0000 Subject: [PATCH] Bug 135419 - Fix todayworktime for 'i say do it' warning git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1841 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- extensions/custis/lib/Checkers.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/custis/lib/Checkers.pm b/extensions/custis/lib/Checkers.pm index 417f76563..bcefe59a4 100644 --- a/extensions/custis/lib/Checkers.pm +++ b/extensions/custis/lib/Checkers.pm @@ -124,8 +124,9 @@ sub show_checker_errors { my ($bugs) = @_; $bugs ||= Bugzilla->request_cache->{failed_checkers}; - return if !$bugs || !grep { grep { !$_->triggers } @{$_->{failed_checkers} || []} } @$bugs; - if (Bugzilla->error_mode != ERROR_MODE_WEBPAGE) + my $pass_chk = grep { $_->{passed_checkers} } @$bugs; + return if $pass_chk || !$bugs || !grep { grep { !$_->triggers } @{$_->{failed_checkers} || []} } @$bugs; + if (Bugzilla->error_mode != ERROR_MODE_WEBPAGE) { my $info = [ map { {